Update image parse code.

This commit is contained in:
soukoku
2015-02-19 22:30:13 -05:00
parent eef0b9db92
commit 9ba2b0d0e0
10 changed files with 284 additions and 182 deletions

View File

@@ -90,7 +90,11 @@ namespace Tester.Winform
Image img = null;
if (e.NativeData != IntPtr.Zero)
{
img = e.GetNativeImage();
var stream = e.GetNativeImageStream();
if (stream != null)
{
img = Image.FromStream(stream);
}
}
else if (!string.IsNullOrEmpty(e.FileDataPath))
{