Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello EveryOne,

Hope you all are doing well and enjoying the weekend.

I want to display .tiff images in C# windows application.

Could you please assist me in this.

I tried with Picturebox but images appear blur with no scrolling.

Then i Tried Alternate Tiff third party control but my manager does not want to use

Third party control.I tried a lot but could'nt come up with result.

Now i am stuck in a terrible situation.

I am hoping for a favourable assistance for you guys since there is no senior person here to

assist me.

Awaiting for your reply,
=====================
Kishor
=========================
Posted
Comments
fjdiewornncalwe 22-Feb-13 11:30am    
If your picture appeared "blurry", it could just be that you were trying to display the image at a size substantially larger than the image file is. ie. If your image only has 32x32 pixels and you try to show it at 128x128, it will be blurry because your program can't magically create data where there isn't any.

1 solution

I just tried it: I took an existing JPG Image, loading into PaintShopPro, saved it as a TIFF file.
Then I added a picture box to a form, and in the form constructor I loaded the file:
C#
Image i = Image.FromFile(@"D:\Temp\mypic.tiff");
pictureBox1.Image = i;
It was not blurred, or otherwise degraded in quality.

So, what are you doing that is different to what I did?

FYI, the image I used was:
3648x2736, 180dpi, 24 bit colour, LZW compression, RU=2, PI=RGB, 15.2Mbyte
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900