I have code that creates a graph using the Bitmap class. The quality of the generated bitmap, however, is pretty poor, how can I improve the quality of this? Please note that I am using the Compact Framework!
Here are a few snippets of how I do different things:
Create a bitmap with background based on existing jpg
Bitmap bitmap = new Bitmap(filename);
Then I create a Graphics class from a bitmap
Graphics myG = Graphics.FromImage(bitmap);
Then I draw like this:
myG.DrawLine(majorAxisPen, graphRect.Left, graphRect.Bottom, graphRect.Right, graphRect.Bottom);
After drawing all that I need, I then save the Bitmap like this:
bitmap.Save(fileDestination, System.Drawing.Imaging.ImageFormat.Jpeg);
Here is the image that he produces 
source share