473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help displaying a bitonal image with antialiasing

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
2 1701
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carolyn Gill | last post by:
It was working fine on the test server. loaded it onto iis6 server after installing php and got everything working (after redirecting it to the correct directory) except for 1 annoying error that I...
3
by: Leif Wessman | last post by:
From: http://www.php.net/manual/en/function.imagettftext.php "color is the color index. Using the negative of a color index has the effect of turning off antialiasing." I'm using a bundled...
14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
13
by: DavidS | last post by:
I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K I can view image. Other image files > 128K,...
4
by: Smoke | last post by:
It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing. is this possible? can somebody tellme how? Thanks for the...
0
by: Turbot | last post by:
Does anyone know how to stop a RichTextBox control from antialiasing the text you enter into it?
2
praclarush
by: praclarush | last post by:
I need to take an image that was in a Array object image and have it display in a table. this is for a item list the table has four columns one for the image, one for a description, one for a price,...
0
by: gcorgnet | last post by:
Hi all, I have a set of Multipage Tiff documents that are to be sent to a web browser. So, I want to convert them to Gif (or Png) before sending them to the client. Those Tiff docs are bitonal...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.