Exemple #1
0
 public static Bitmap Color(this Bitmap bmp, Color[] colors)
 => BitmapManager.ColorBitmap(bmp, colors);
Exemple #2
0
 public static byte[] GetBytes(this Bitmap b, out int stride)
 => BitmapManager.GetBytes(b, out stride);
Exemple #3
0
 public static void SaveBitmap(this Bitmap bmp, string path, SystemImageFormat f)
 => BitmapManager.Save(bmp, path, f);
Exemple #4
0
 public static Bitmap ToPalette(this Bitmap bmp, Color[] palette)
 => BitmapManager.DrawToPalette(bmp, palette);
Exemple #5
0
 public static Bitmap ToBpp32(this Bitmap bmp, Color?col)
 => BitmapManager.DrawBpp32(bmp, col);
Exemple #6
0
 public static Bitmap Resize(this Bitmap bmp, Size size)
 => BitmapManager.Resize(bmp, size);
Exemple #7
0
 public static Bitmap Resize(this Bitmap bmp, int width, int height)
 => BitmapManager.Resize(bmp, width, height);
Exemple #8
0
 public static Bitmap Resize(this Bitmap bmp, int scale)
 => BitmapManager.Resize(bmp, bmp.Width * scale, bmp.Height * scale);
Exemple #9
0
 public static Bitmap ColorIndexed(this Bitmap bmp, Color[] colors)
 => BitmapManager.ColorIndexedBitmap(bmp, colors);
 public static ImageCodecInfo GetCodecInfo(this SystemImageFormat f)
 => BitmapManager.GetCodec(f);
 public static int FindClosestMatch(this Color col, Color[] palette)
 => BitmapManager.GetClosestMatchingColor(col, palette);
 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);