mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-24 10:11:20 +08:00
Added tiff support.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user