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