예제 #1
0
        public void WriteIndexUsingPixel(Pixel pixel, Int32 index, Byte[] buffer = null)
        {
            // checks parameters
            Guard.CheckNull(pixel, "pixel");

            // sets index to pixel (pixel's index is updated)
            pixel.SetIndex(index, buffer);

            // writes pixel to a bitmap/buffer
            WritePixel(pixel, buffer);
        }
예제 #2
0
        public void WriteIndexUsingPixel(Pixel pixel, Int32 index, Byte[] buffer = null)
        {
            // checks parameters
            Guard.CheckNull(pixel, "pixel");

            // sets index to pixel (pixel's index is updated)
            pixel.SetIndex(index, buffer);

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