Click or drag to resize

Palette Class

The palette contains color information that is applied to colormapped images. Use this object to modify and read the palette colors.
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public class Palette : MarshalByRefObject, IDisposable, 
	ICloneable, ISerializable

The Palette type exposes the following members.

Constructors
  NameDescription
Public methodPalette
Initializes a new instance of the Palette class.
Public methodPalette(Color)
Creates a new instance of Palette specifying the colors of the palette.
Public methodPalette(ColorPalette)
Initializes a new instance of the Palette class.
Public methodPalette(Int32)
Initialize a new instance of a Palette specifying the number of colors to start with.
Public methodPalette(PaletteType)
Initialize a new instance of a Palette class specifying the PaletteType.
Protected methodPalette(SerializationInfo, StreamingContext)
Initializes a new instance of the Palette class.
Top
Properties
  NameDescription
Public propertyColors
Returns the number of colors in the palette.
Top
Methods
  NameDescription
Public methodClone
Returns a deep copy of this Palette.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Palette class.
(Overrides ObjectFinalize.)
Public methodGetClosestPaletteIndex(Color)
Returns the palette index that best matches a specified color.
Public methodGetClosestPaletteIndex(Color, Boolean)
Returns the palette index that best matches a specified color, returning a value if there was an exact match.
Public methodGetEntry
Returns the color of a particular index entry in the palette. See SetEntry(Int32, Color) to change the color of a palette entry.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetObjectData
Provide information for object serialization.
Public methodStatic memberGetSystemPalette
Returns the system palette of the current display if it's an 8-bit device, null (Nothing in Visual Basic) if the device is greater then 8 bits.
Public methodStatic memberGetSystemPalette(IntPtr)
Returns the system palette of the specified device if it's 8-bit, null (Nothing in Visual Basic) if the device is greater then 8 bits.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAlpha
Determines whether this instance has alpha.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodIsGray
Determines whether this instance is gray.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodSetEntry
Sets the color of a particular index entry in the palette. See GetEntry(Int32) to retreive the color of the palette entry.
Public methodSetPalette
Change the palette to a standard PaletteType.
Public methodToArray
To the array.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
A palette consists of 256 colors, each index is a byte value of R, G, B, and sometimes Alpha values.
See Also