By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

What is the PictureBox downsampling for its bitmap?

P: n/a
Using VS2005 with .NET Framework 2.0

I'm using the the System.Windows.Forms.PictureBox to display a bitmap when
the PictureBox.SizeMode is PictureBoxSizeMode.StretchImage
The PictureBox can be resized by the user.

When the PictureBox size is less then the bitmap size then the bitmap is
resized by the PictureBox to a smaller size to fit the PictureBox size.

My question is: What method is used to downsize the bitmap?

For example: Lets say the bitmap is downsized by half from 100x100 to 50x50.
It means that every 4 pixels square should be converted to a single pixel. It
can be done by taking the maximum value of the four pixels. It can by done
bay taking the average value of the four pixels. Or maybe even the minimum
value of the four pixels, or...

So what is the method of the downsampling of the bitmap?
How can I choose this method?
Oct 16 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.