compatibility

This commit is contained in:
Manuel Kamper 2019-04-14 11:00:17 +02:00
parent b67279f427
commit 30e2ff6366
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
namespace Mk0.Tools.Convert
{
public static class Byte
public static class ByteConvert
{
public static System.Drawing.Image ToImage(byte[] byteArrayIn)
public static System.Drawing.Image ToImage(this byte[] byteArrayIn)
{
MemoryStream ms = new MemoryStream(byteArrayIn);
System.Drawing.Image returnImage = System.Drawing.Image.FromStream(ms);

View File

@ -2,9 +2,9 @@
namespace Mk0.Tools.Convert
{
public static class Image
public static class ImageConvert
{
public static byte[] ToByte(System.Drawing.Image imageIn)
public static byte[] ToByte(this System.Drawing.Image imageIn)
{
MemoryStream ms = new MemoryStream();
imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);