Your technology certification is waiting. Enroll in Cloud Class ®
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.
Bitmap compBitmap = new Bitmap(picBox.Width, picBox.Height);
Graphics g = Graphics.FromImage(compBitmap);
g.SmoothingMode = SmoothingMode.HighQuality;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.CompositingQuality = CompositingQuality.HighQuality;
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
//figure out your sizing -- if you need help with that then i will help
ImageAttributes ia = new ImageAttributes();
g.DrawImage(picBox1.Image, new Rectangle(0, 0, compBitmap.Width/4, compBitmap.Height/4), 0, 0, compBitmap.Width/4, compBitmap.Height/4, GraphicsUnit.Pixel, ia);
//you will have to have local members for size of bitmaps and such to make it simple for placment.
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.