Accusoft.ImagXpress12.Net
CreateColorPalette(Int32) Method
See Also  Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageX Class > CreateColorPalette Method : CreateColorPalette(Int32) Method




bitsPerPixel
An integer which represents the bits per pixel.

Glossary Item Box

Creates a System.Drawing.Imaging.ColorPalette object based on the number of bits per pixel.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

bitsPerPixel
An integer which represents the bits per pixel.

Return Value

A System.Drawing.Imaging.ColorPalette object.

Remarks

This helper function is for convenience and can be used as a class factory for the System.Drawing.Imaging.ColorPalette class since it is a sealed class that does not allow it to be dynamically created with a new.

If the bitsPerPixel is either 1, 4 or 8, then a ColorPalette is created with 2, 16, and 256 entries respectively. Any other value will return an empty ColorPalette with zero entries.

See Also

©2013. Accusoft Corporation. All Rights Reserved.