Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display tiff files on Silverlight?

How do I display tiff files on a Silverlight application? I can display any image format except tiff, can anyone help me? Thanks.

like image 904
PlayKid Avatar asked Sep 04 '09 13:09

PlayKid


People also ask

How do I view TIFF images?

For Windows:Highlight the file you want to open. Double-click. The TIFF file should open in Windows Photo Viewer.

What program can view TIFF files?

How to open a TIFF file. You can open TIFF files with various image editors since the TIFF format is quite common. Some options include Microsoft Photos (Windows), CorelDRAW Graphics Suite (Windows and macOS), Adobe Photoshop (Windows and macOS), and Apple Preview (bundled with macOS).

Can a TIF be RGB?

Baseline TIFF image types are: bilevel, grayscale, palette-color, and RGB full-color images.


1 Answers

I was successful displaying TIFFs in Silverlight. It's easy to port the free LibTiff.NET library to Silverlight, just 3-4 minor tweaks required.

The library itself is quite legacy-like and raw to use and one still needs to have some knowledge about the inner workings of the TIFF format in order to be able to extract the image data the way one needs it.

But it's doable and the bits and pieces can then be chiseled into a WriteableBitmap.

like image 149
herzmeister Avatar answered Oct 28 '22 06:10

herzmeister