redesign byte to image

This commit is contained in:
Manuel Kamper 2019-05-04 14:45:28 +02:00
parent 91487b85af
commit 2fbab2c9ad
2 changed files with 7 additions and 3 deletions

View File

@ -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;
}
}
}
}

View File

@ -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")]