Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 22-Feb-13 5:07am
Comments
Marcus Kramer at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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:
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
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 339
1 Sergey Alexandrovich Kryukov 285
2 OriginalGriff 280
3 Peter Leow 171
4 Abhinav S 168
0 Sergey Alexandrovich Kryukov 8,979
1 OriginalGriff 5,280
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid