How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Color Palette Edit
Color Palette Edit
Home ›› XImage.Raster ›› C# Raster: Color Palette Edit

C# Raster - Modify Image Palette in C#.NET

Explain How to Modify Image palette in Visual C#.NET Application


This is a batch of data indicating the number of colors, consisting of a series of array 2^n. The property is used to reduce the size of the picture, especially in black and white picture.

Note: if the image itself does not contain palette Color then we will not support the palette color, which has a lot of image formats that are not supported by palette. color, such as JPEG.

Modify the Image Palette

The property palette can be modified by assigning it to the processor. You can set or get the processor property as follow:

RasterImage img = new RasterImage(@input.png);
ImageProcess processor = new ImageProcess(img);
//Get the images color palette
ColorPalette processor = process.Palette;