Quantize using an Octree
상속: Quantizer
예제 #1
0
        // Save a GIF, using OctTree pallettee.
        public static void SaveGif(Bitmap bitmap, string fileName)
        {
            OctreeQuantizer quantizer = new OctreeQuantizer(255, 8);

            using (Bitmap quantized = quantizer.Quantize(bitmap)) {
                quantized.Save(fileName, ImageFormat.Gif);
                quantized.Dispose();
            }
        }
예제 #2
0
        // Save a GIF, using OctTree pallettee.
        public static void SaveGif(Bitmap bitmap, string fileName)
        {
            OctreeQuantizer quantizer = new OctreeQuantizer(255, 8);

            using (Bitmap quantized = quantizer.Quantize(bitmap)) {
                quantized.Save(fileName, ImageFormat.Gif);
                quantized.Dispose();
            }
        }