added default conversion for image to byte[] f.e. if it is a memorystream

This commit is contained in:
Manuel Kamper 2019-05-04 18:17:50 +02:00
parent 2fbab2c9ad
commit 59989b0969
2 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,9 @@ namespace Mk0.Tools.Convert
case ".gif":
image.Save(ms, ImageFormat.Gif);
break;
default:
image.Save(ms, ImageFormat.Png);
break;
}
return ms.ToArray();
}

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.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: AssemblyFileVersion("1.0.3.0")]