LoadBitmap() публичный статический Метод

Converts bitmap to byte array using external palette.
public static LoadBitmap ( Bitmap bmp, ImagePalette palette ) : byte[]
bmp System.Drawing.Bitmap
palette ImagePalette
Результат byte[]
Пример #1
0
 /// <summary>
 /// Creates new instance.
 /// </summary>
 public static RawImage FromBitmap(Bitmap bmp)
 {
     return(new RawImage(Drawing.LoadBitmap(bmp), bmp.Width, bmp.Height));
 }
Пример #2
0
 /// <summary>
 /// Creates new instance.
 /// </summary>
 public static RawImage FromBitmap(Bitmap bmp, ImagePalette palette)
 {
     return(new RawImage(Drawing.LoadBitmap(bmp, palette), bmp.Width, bmp.Height));
 }