Exemplo n.º 1
0
        public void WriteColorUsingPixel(Pixel pixel, Color color, IColorQuantizer quantizer, Byte[] buffer = null)
        {
            // checks parameters
            Guard.CheckNull(pixel, "pixel");

            // sets color to pixel (pixel is updated with color)
            pixel.SetColor(color, quantizer);

            // writes pixel to a bitmap/buffer
            WritePixel(pixel, buffer);
        }
Exemplo n.º 2
0
        public void WriteColorUsingPixel(Pixel pixel, Color color, IColorQuantizer quantizer, Byte[] buffer = null)
        {
            // checks parameters
            Guard.CheckNull(pixel, "pixel");

            // sets color to pixel (pixel is updated with color)
            pixel.SetColor(color, quantizer);

            // writes pixel to a bitmap/buffer
            WritePixel(pixel, buffer);
        }