What is the PictureBox downsampling for its bitmap?
- From: Sharon <SharonG@xxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Oct 2008 05:35:01 -0700
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?
--------
Thanks
Sharon
.
- Follow-Ups:
- Re: What is the PictureBox downsampling for its bitmap?
- From: Herfried K. Wagner [MVP]
- Re: What is the PictureBox downsampling for its bitmap?
- Prev by Date: Some notes for .net developers, hope it's useful for you!
- Next by Date: Event firing twice in UserControl issue
- Previous by thread: Some notes for .net developers, hope it's useful for you!
- Next by thread: Re: What is the PictureBox downsampling for its bitmap?
- Index(es):
Relevant Pages
|