Palette Methods |
The Palette type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddRange |
Adds the specified colors to this palette collection
|
![]() | ClearItems |
Called when clearing the items, to clear the cached argb values
(Overrides ObservableCollectionTClearItems.) |
![]() | Clone |
Creates a clone of this palette
|
![]() | Equals |
Gets a value indicating that this object is equal to the specified obj (Overrides ObjectEquals(Object).) |
![]() | FindAddColour |
Finds the index of the specified color, or adds it if it does not exist
|
![]() | FindClosest |
Finds the closest color in this palette to the specified color |
![]() ![]() | FromEGA |
Gets the standard 16 colors of the specified EGA palette, at the indexes specified with EGAColors |
![]() ![]() | GetDosPalette |
Gets the standard 16-color palette used in DOS
|
![]() ![]() | GetEgaPalette |
Gets the standard 64-color EGA palette
|
![]() | GetHashCode |
Gets the hash code for this palette
(Overrides ObjectGetHashCode.) |
![]() | GetRGBColor |
Gets the cached ARGB value of the color at the specified index |
![]() | InsertItem |
Called when inserting a color, to insert the cached argb value of the color
(Overrides ObservableCollectionTInsertItem(Int32, T).) |
![]() | Load |
Loads the palette from the specified binary reader in (A)RGB components
|
![]() | RemoveItem |
Called when removing an item, to remove the cached argb value of the color
(Overrides ObservableCollectionTRemoveItem(Int32).) |
![]() | Save |
Saves this palette to the specified binary writer in (A)RGB components
|
![]() | SetItem |
Called when setting a color in the palette, to set the cached argb value of the color
(Overrides ObservableCollectionTSetItem(Int32, T).) |