views:

271

answers:

1

I need to view a multipage tiff with WPF.

I currently have the following:

<FlowDocumentReader>
    <FlowDocument>
        <BlockUIContainer>
            <Image x:Name="DocImg" Source="test1752158790.tif" />          
        </BlockUIContainer>
    </FlowDocument>
</FlowDocumentReader>

I can only view the first page.

Is there a way to do this?

Thanks! Todd

A: 

I would implement your own control code in the back. You're going to need some user input to indicate when the user goes from one page to the next, be it via mouse click or whatever.

Once you get that user input, you can then show a different page of the tiff. And as was said in the question ChrisF used, I'd go with libtiff, more specifically, the .NET wrapper FreeImage that nicely encapsulates tiff functionality for .NET.

mmr