XImage.Raster
Features
Tech Specs
How-to C#
Pricing

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


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



How to read, update raster image color palette using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to read, update raster image color palette in .NET applications
  3. Step by Step Tutorial










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:
  • Create a RasterImage object with an image loaded.
  • Create a ImageProcess on the RasterImage object
  • Get ColorPalette of the loaded image through property Palette

RasterImage img = new RasterImage(@input.png);
ImageProcess processor = new ImageProcess(img);
ColorPalette processor = process.Palette;