Using the tiff bitmap decoder libraries

A

Andrew Falanga

Hi,

I have a need to doing a pixel by pixel comparison of two different
TIFF images and I noticed, while searching online, the
TiffBitmapDecoder in System.Windows.Media.Imaging. This looks like
I'll be able to make use of it in my C# program. However, on MSDN,
I'm not finding the greatest documentation on using this. All I need
to do is get to a point where I can read, into a byte array perhaps,
the graphic content of a TIFF image. How would I do that using this
library?

Thanks,
Andy
 
A

Andrew Falanga

You can use the Image class to read the TIFF file into a Bitmap.  Then you  
can use the LockBits() method to retrieve the actual byte data for the  
image.

Pete

Thanks. Looks like some reading on MSDN now, but at least I know
where to start.

Andy
 

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