simple tiff viewer for .net 2003 web app

J

Jon Delano

Hello

I'm looking for a simple TIFF viewer for a vb.net web application.
The TIFFs are single page and I just need to display them and that is it ...
nothing fancy at all.

Anyone have a suggestion as to a control I can use.

Thanks
Jon
 
R

Rick Strahl [MVP]

It should be pretty simple since GDI+ supports TIF files (although I'm nto
sure if it can do all the varying format types).

It should be as easy as reading a TIF file from a BMP file and writing it
back out using hte Response.OutputStream.

private void Page_Load(object sender, System.EventArgs e)

{

string YourImageTifFile = @"\temp\images\MyTif.Tif";

Bitmap bmp = new Bitmap(YourImageTifFile);

Response.ContentType = "image/jpeg";

bmp.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);

bmp.Dispose();

return;

}

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
http://www.west-wind.com/wwThreads/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top