Added tiff support.

This commit is contained in:
soukoku
2015-02-18 21:06:07 -05:00
parent b27a9ba4cc
commit daaeb840af
10 changed files with 166 additions and 104 deletions

View File

@@ -289,7 +289,7 @@ namespace Tester.WPF
BitmapSource img = null;
if (e.NativeData != IntPtr.Zero)
{
img = e.GetNativeBitmap().ConvertToWpfBitmap();
img = e.GetNativeImage().ConvertToWpfBitmap();
}
else if (!string.IsNullOrEmpty(e.FileDataPath))
{

View File

@@ -87,10 +87,10 @@ namespace Tester.Winform
}
// handle image data
Bitmap img = null;
Image img = null;
if (e.NativeData != IntPtr.Zero)
{
img = e.GetNativeBitmap();
img = e.GetNativeImage();
}
else if (!string.IsNullOrEmpty(e.FileDataPath))
{