public static RawImage FromBitmap(Bitmap bmp, ImagePalette palette) { return new RawImage(Drawing.LoadBitmap(bmp, palette), bmp.Width, bmp.Height); }