redesign byte to image
This commit is contained in:
parent
91487b85af
commit
2fbab2c9ad
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user