示例#1
0
 public static Bitmap Quantize(Bitmap bmp, int colors, WiiPixelFormat texFormat, WiiPaletteFormat palFormat,
                               IProgressTracker progress)
 {
     using (MedianCut mc = new MedianCut(bmp, texFormat, palFormat))
     {
         return(mc.Quantize(colors, progress));
     }
 }
 public static Bitmap Quantize(Bitmap bmp, int colors, WiiPixelFormat texFormat, WiiPaletteFormat palFormat, IProgressTracker progress)
 {
     using (MedianCut mc = new MedianCut(bmp, texFormat, palFormat))
         return mc.Quantize(colors, progress);
 }