Click or drag to resize

Palette Methods

The Palette type exposes the following members.

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
See Also