compatibility
This commit is contained in:
parent
b67279f427
commit
30e2ff6366
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user