// Creates a square with a circle in the middle. Bitmap tn = new Bitmap(30, 30); Graphics gForm = Graphics.FromImage(tn); gForm.CompositingMode = CompositingMode.SourceOver; gForm.CompositingQuality = CompositingQuality.HighQuality; gForm.SmoothingMode = SmoothingMode.HighQuality; ; // Draw the background. Brush BackBrush = new SolidBrush(Color.IndianRed); gForm.FillRectangle(BackBrush, 0, 0, tn.Height, tn.Width); BackBrush.Dispose(); Brush FillBrush = new SolidBrush(Color.BlueViolet); gForm.FillEllipse(FillBrush, 10, 10, 10, 10); FillBrush.Dispose(); tn.Save(OutputFolder + @"test.jpg", ImageFormat.Jpeg); //too blury! tn.Save(OutputFolder + @"test.Gif", ImageFormat.Gif); // too dithered! tn.Save(OutputFolder + @"test.Png", ImageFormat.Png); // IE7 problem!
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE