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

Help displaying a bitonal image with antialiasing

P: n/a
I have a series of bitonal TIFF images that I need to display to the user in a form and the image needs to be displayed to fit the
container (PictureBox). I also need to antialias the image for display quality reasons. I can display the TIFF easy enough, and
get it to fit (.SixeMode=Zoom) but I cant figure out how to antialias it. I know it has something to do with InterpolationMode
and/or SmoothingMode, but I just can't seem to get the desired effect. I tried applying the InterpolationMode and/or SmoothingMode
during the PictureBox Paint event :
e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias

e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic

But it had no effect. Can someone point me in the right direction.

TIA,
--
Al Reid

Jan 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I forgot to mention that I'm using VB2005.

--
Al Reid
"Al Reid" <ar*****@reidDASHhome.com> wrote in message news:uy*************@TK2MSFTNGP12.phx.gbl...
I have a series of bitonal TIFF images that I need to display to the user in a form and the image needs to be displayed to fit the
container (PictureBox). I also need to antialias the image for display quality reasons. I can display the TIFF easy enough, and
get it to fit (.SixeMode=Zoom) but I cant figure out how to antialias it. I know it has something to do with InterpolationMode
and/or SmoothingMode, but I just can't seem to get the desired effect. I tried applying the InterpolationMode and/or SmoothingMode during the PictureBox Paint event :
e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias

e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic

But it had no effect. Can someone point me in the right direction.

TIA,
--
Al Reid

Jan 26 '06 #2

P: n/a
Thanks group, I solved this one myself.

--
Al Reid

"Al Reid" <ar*****@reidDASHhome.com> wrote in message news:uy*************@TK2MSFTNGP12.phx.gbl...
I have a series of bitonal TIFF images that I need to display to the user in a form and the image needs to be displayed to fit the
container (PictureBox). I also need to antialias the image for display quality reasons. I can display the TIFF easy enough, and
get it to fit (.SixeMode=Zoom) but I cant figure out how to antialias it. I know it has something to do with InterpolationMode
and/or SmoothingMode, but I just can't seem to get the desired effect. I tried applying the InterpolationMode and/or SmoothingMode during the PictureBox Paint event :
e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias

e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic

But it had no effect. Can someone point me in the right direction.

TIA,
--
Al Reid

Jan 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.