mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-24 18:29:04 +08:00
Added image conversion parts from commonwin32.
This commit is contained in:
@@ -289,7 +289,7 @@ namespace Tester.WPF
|
||||
BitmapSource img = null;
|
||||
if (e.NativeData != IntPtr.Zero)
|
||||
{
|
||||
img = e.NativeData.GetWPFBitmap();
|
||||
img = e.GetNativeBitmap().ConvertToWpfBitmap();
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(e.FileDataPath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user