Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing .Tif file in PictureBox 1

Status
Not open for further replies.

mansii

Programmer
Oct 18, 2002
641
ID
Framework 1.1

Condition:
The .Tif file was created from a scanner, and located on the scan server.

Problem:
1. I've been trying to show the .Tif file in my Windows form PictureBox with no luck.
2. The reason why it is in .Tif format is caused by the limitation of the scanner. I had no idea to set it up as , for example, a .JPG file.

Current attemp:
PictureBox1.Image.FromFile("\\ScanServer\Image\1.tif")

TIA,
mansii
 
Check out the following link, which discusses converting images from .tif format to .jpg format:

Convert TIFF to JPEG

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
normally .net should open tif files since it does on my computer. But there are different types and it could be that the scanner makes a non-standard tif. Or has a faulty algorithm.

Christiaan Baes
Belgium

"Time for a new sig." - Me
 
jebenson,
The link is great.

chrissie1,
I thought so, but when I tried to set the picturebox's image, the *.tif extension is not listed in the dialog form's file type.
Maybe I missed something during .Net setup.

[green]Current condition:[/green]
The .tif file was successfuly converted to a .gif file located in the temp folder.

[red]Current problem:[/red]
The new .gif image is not showing on the picturebox.

[blue]Current attempt:[/blue]
PictureBox1.Image.FromFile("C:\Temp\1.Gif")

TIA
 
Solved!

PictureBox1.Image = Image.FromFile(TifFile)

Thank's all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top