Gets a copy of the palette of this RasterImage object that will be used by 1-8 bit color or grayscale image.
public [Leadtools.RasterColor[]](rastercolor.html) GetPalette()
Public Function GetPalette() As Leadtools.RasterColor()
public [Leadtools.RasterColor[]](rastercolor.html) GetPalette()
@property (nonatomic, strong, readonly, nullable) NSArray<LTRasterColor *> *palette
public RasterColor[] getPalette()
function Leadtools.RasterImage.GetPalette()
public:
Leadtools.array<RasterColor>^ GetPalette();
The palette is used for 1-8 bit color or grayscale image rendering. Image is grayscale when red, green and blue (R=G=B) components for each palette entry has the same value.
The image data of a RasterImage object with BitsPerPixel values of 1, 2, 3, 4, 5, 6, 7 or 8 consists of an index into the image palette. You can get a copy of the palette used by using the GetPalette method.
You can change the palette used by the RasterImage object with the SetPalette method.
This method does not support signed images.
For more information, refer to RasterPalette and Introduction: Palette Handling.
For information on 10 to 16-bit grayscale image, refer to the Grayscale Images.
For an example, refer to SetPalette and StartDithering.
Products |
Support |
Feedback: GetPalette Method (RasterImage) - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.