Re: What is the PictureBox downsampling for its bitmap?
- From: Sharon <SharonG@xxxxxxxxxxxxxxxxx>
- Date: Sun, 19 Oct 2008 00:35:00 -0700
Thanks a lot Herfried,
The image I'm drawing is the ultrasonic result of some scan.
The values of the image pixels are in the range of 0 to 255 and the image is
PixelFormat.Format8bppIndexed with color palette.
The important thing for me is that when the image is shrunken, the defects
that are drawn in the image will be visible at all time by taking the maximum
value from the shrunken grid. For example; if a 4 square pixels is shrink to
a single pixel, the the single pixel will have the maximum value of the four.
I don't see in which InterpolationMode I can use for this.
Is it possible? How?
--
Thanks
Sharon
________________________________________
"Herfried K. Wagner [MVP]" wrote:
"Sharon" <SharonG@xxxxxxxxxxxxxxxxx> schrieb:.
I assume it's the PictureBox graphics I should handle and not the
bitmap's.
Am I right?
Yes, you are right in the case of the picturebox.
Can you forward me dor more detailed specification about the
InterpolationMode options, so I'll be able to see if I can use one of
them,
specially for the max method.
InterpolationMode Enumeration (System.Drawing.Drawing2D)
<URL:http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.interpolationmode.aspx>
How to: Use Interpolation Mode to Control Image Quality During Scaling
<URL:http://msdn.microsoft.com/en-us/library/k0fsyd4e.aspx>
-------------------------
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
- References:
- What is the PictureBox downsampling for its bitmap?
- From: Sharon
- Re: What is the PictureBox downsampling for its bitmap?
- From: Herfried K. Wagner [MVP]
- Re: What is the PictureBox downsampling for its bitmap?
- From: Sharon
- Re: What is the PictureBox downsampling for its bitmap?
- From: Herfried K. Wagner [MVP]
- Re: What is the PictureBox downsampling for its bitmap?
- From: Sharon
- Re: What is the PictureBox downsampling for its bitmap?
- From: Herfried K. Wagner [MVP]
- What is the PictureBox downsampling for its bitmap?
- Prev by Date: Re: What is the PictureBox downsampling for its bitmap?
- Next by Date: DataGridView.Sort
- Previous by thread: Re: What is the PictureBox downsampling for its bitmap?
- Next by thread: Event firing twice in UserControl issue
- Index(es):
Relevant Pages
|