Using VS2005 with .NET Framework 2.0
I'm using the the System.Windows. Forms.PictureBo x to display a bitmap when
the PictureBox.Size Mode is PictureBoxSizeM ode.StretchImag e
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?
--------
Thanks
Sharon
I'm using the the System.Windows. Forms.PictureBo x to display a bitmap when
the PictureBox.Size Mode is PictureBoxSizeM ode.StretchImag e
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?
--------
Thanks
Sharon