From 30e2ff6366e0b0ce326af827c1cc9cfb3cc2c136 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Sun, 14 Apr 2019 11:00:17 +0200 Subject: [PATCH] compatibility --- Mk0.Tools.Convert/Mk0.Tools.Convert/Byte.cs | 4 ++-- Mk0.Tools.Convert/Mk0.Tools.Convert/Image.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Mk0.Tools.Convert/Mk0.Tools.Convert/Byte.cs b/Mk0.Tools.Convert/Mk0.Tools.Convert/Byte.cs index 7e979fe..8a9a7ba 100644 --- a/Mk0.Tools.Convert/Mk0.Tools.Convert/Byte.cs +++ b/Mk0.Tools.Convert/Mk0.Tools.Convert/Byte.cs @@ -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); diff --git a/Mk0.Tools.Convert/Mk0.Tools.Convert/Image.cs b/Mk0.Tools.Convert/Mk0.Tools.Convert/Image.cs index f988830..d895faa 100644 --- a/Mk0.Tools.Convert/Mk0.Tools.Convert/Image.cs +++ b/Mk0.Tools.Convert/Mk0.Tools.Convert/Image.cs @@ -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);