From 2fbab2c9ad1da2adef4e2f05b400427e8c32d37c Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Sat, 4 May 2019 14:45:28 +0200 Subject: [PATCH] redesign byte to image --- Mk0.Tools.Convert/Byte.cs | 6 +++++- Mk0.Tools.Convert/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Mk0.Tools.Convert/Byte.cs b/Mk0.Tools.Convert/Byte.cs index 98be503..236cb98 100644 --- a/Mk0.Tools.Convert/Byte.cs +++ b/Mk0.Tools.Convert/Byte.cs @@ -9,7 +9,11 @@ namespace Mk0.Tools.Convert { using (MemoryStream ms = new MemoryStream(byteArray)) { - return Image.FromStream(ms); + using (var bitmap = new Bitmap(ms)) + { + var bitmapCopy = new Bitmap(bitmap, bitmap.Width, bitmap.Height); + return bitmapCopy; + } } } } diff --git a/Mk0.Tools.Convert/Properties/AssemblyInfo.cs b/Mk0.Tools.Convert/Properties/AssemblyInfo.cs index 3d6f0d0..6f2c810 100644 --- a/Mk0.Tools.Convert/Properties/AssemblyInfo.cs +++ b/Mk0.Tools.Convert/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyFileVersion("1.0.2.0")]