Palette Methods |
The Palette type exposes the following members.
Name | Description | |
---|---|---|
Clone |
Returns a deep copy of this Palette.
| |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the Palette class.
(Overrides Object.Finalize().) | |
GetClosestPaletteIndex(Color) | Returns the palette index that best matches a specified color. | |
GetClosestPaletteIndex(Color, Boolean) | Returns the palette index that best matches a specified color, returning a value if there was an exact match. | |
GetEntry |
Returns the color of a particular index entry in
the palette. See SetEntry(Int32, Color) to change the color of a palette entry.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetObjectData | Provide information for object serialization. | |
GetSystemPalette() | 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. | |
GetSystemPalette(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. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasAlpha |
Determines whether this instance has alpha.
| |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
IsGray |
Determines whether this instance is gray.
| |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
SetEntry |
Sets the color of a particular index entry in the palette. See
GetEntry(Int32) to retreive the color of the palette entry.
| |
SetPalette |
Change the palette to a standard PaletteType.
| |
ToArray |
To the array.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |