Ejemplo n.º 1
0
 public static Bitmap Color(this Bitmap bmp, Color[] colors)
 => BitmapManager.ColorBitmap(bmp, colors);
Ejemplo n.º 2
0
 public static byte[] GetBytes(this Bitmap b, out int stride)
 => BitmapManager.GetBytes(b, out stride);
Ejemplo n.º 3
0
 public static void SaveBitmap(this Bitmap bmp, string path, SystemImageFormat f)
 => BitmapManager.Save(bmp, path, f);
Ejemplo n.º 4
0
 public static Bitmap ToPalette(this Bitmap bmp, Color[] palette)
 => BitmapManager.DrawToPalette(bmp, palette);
Ejemplo n.º 5
0
 public static Bitmap ToBpp32(this Bitmap bmp, Color?col)
 => BitmapManager.DrawBpp32(bmp, col);
Ejemplo n.º 6
0
 public static Bitmap Resize(this Bitmap bmp, Size size)
 => BitmapManager.Resize(bmp, size);
Ejemplo n.º 7
0
 public static Bitmap Resize(this Bitmap bmp, int width, int height)
 => BitmapManager.Resize(bmp, width, height);
Ejemplo n.º 8
0
 public static Bitmap Resize(this Bitmap bmp, int scale)
 => BitmapManager.Resize(bmp, bmp.Width * scale, bmp.Height * scale);
Ejemplo n.º 9
0
 public static Bitmap ColorIndexed(this Bitmap bmp, Color[] colors)
 => BitmapManager.ColorIndexedBitmap(bmp, colors);
Ejemplo n.º 10
0
 public static ImageCodecInfo GetCodecInfo(this SystemImageFormat f)
 => BitmapManager.GetCodec(f);
Ejemplo n.º 11
0
 public static int FindClosestMatch(this Color col, Color[] palette)
 => BitmapManager.GetClosestMatchingColor(col, palette);
Ejemplo n.º 12
0
 public static Bitmap ToBitmap(this byte[] bytes, int width, int height, int stride, PixelFormat f, Color[] palette, Color?alpha)
 => BitmapManager.DrawBitmap(bytes, width, height, stride, f, palette, alpha);