0

I have a SQL server table with a field that stores binary data. The binary data is of "muliple page TIFF" image\file. I want to display this multiple page Tiff image\file in my WPF application, using a scroll viewer, a viewbox, and image controls. How can I do this?

I need both XAML and VB.Net code-behind samples.

Thank you,

Clemens
  • 123,504
  • 12
  • 155
  • 268
Atom Ant
  • 7
  • 1
  • 3
  • http://stackoverflow.com/questions/2004185/wpf-image-control-to-progressively-load-multipage-tiff – Kalyan Jan 10 '17 at 01:10
  • [What have you tried?](http://mattgemmell.com/what-have-you-tried/) – Clemens Jan 10 '17 at 07:02
  • I have tried the following. Works when testing because I have a file saved in an actual file path: Dim imageStreamSource As New FileStream("C:\MyFiles\LETTER_A_EXAMPLE_XYZ.tif", FileMode.Open) Dim decoder As New TiffBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default) Dim bitmapSource As BitmapSource = decoder.Frames(0) SVimage1.Source = bitmapSource – Atom Ant Jan 10 '17 at 17:31
  • The problem is that in reality I don't have a file path. The image is store as binary in a field, in a SQL Database. If I could get TiffBitMapDecoder with my binary data and then get the number of frames, that would be great!!!! – Atom Ant Jan 10 '17 at 17:35

0 Answers0