c# bitmap to array byte
public static class ImageExtensions
{
public static byte[] ToByteArray(this Image image, ImageFormat format)
{
using(MemoryStream ms = new MemoryStream())
{
image.Save(ms, format);
return ms.ToArray();
}
}
}
Also in C#:
- c# math to radiant
- how to generate random unique id in c#
- string format comma c#
- c# variable
- c# remove last character from string
- c# new dictionary linq
- c list add element
- usermanager find based on role
- unity get number of child objects
- unity get child
- c# checksum
- slomotion in unity 3d
- c sharp tryparse
- c# public static string
- getcomponent c#
- c# how to refresh your binding source
- unity deactivate scripts in list
- how to create a list in c# unity
- unity search for specific text in a string
- On add component unity
- c# class to byte array
- project tab unity
- c# mailmessage set sender name
- how to name GameObject in c#