FreeImage.NET Class Library Reference
Palette Class |
Provides methods for working with the standard bitmap palette.
Inheritance Hierarchy
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public sealed class Palette : MemoryArray<RGBQUAD>
The Palette type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Palette(Color) |
Initializes a new instance for the given array of Color that contains
a palette.
| |
Palette(Int32) |
Initializes a new instance with the specified size.
| |
Palette(FIBITMAP) |
Initializes a new instance for the given FreeImage bitmap.
| |
Palette(FITAG) |
Initializes a new instance for the given FITAG that contains
a palette.
| |
Palette(MetadataTag) |
Initializes a new instance for the given MetadataTag that contains
a palette.
| |
Palette(RGBQUAD) |
Initializes a new instance for the given array of RGBQUAD that contains
a palette.
|
Properties
Name | Description | |
---|---|---|
AsArray |
Gets or sets the palette through an array of RGBQUAD.
| |
BaseAddress |
Gets the base address of the represented memory block.
(Inherited from MemoryArrayT.) | |
Count |
Gets a 32-bit integer that represents the total number of elements
in the MemoryArrayT.
(Inherited from MemoryArrayT.) | |
Data |
Gets or sets the values of the unmanaged array.
(Inherited from MemoryArrayT.) | |
IsSynchronized |
Gets a value indicating whether access to the MemoryArrayT
is synchronized (thread safe).
(Inherited from MemoryArrayT.) | |
Item |
Gets or sets the value at the specified position in the array.
(Inherited from MemoryArrayT.) | |
Length |
Gets the length of the unmanaged array.
(Inherited from MemoryArrayT.) | |
SyncRoot |
Gets an object that can be used to synchronize access to the MemoryArrayT.
(Inherited from MemoryArrayT.) |
Methods
Name | Description | |
---|---|---|
Clone |
Creates a shallow copy of the MemoryArrayT.
(Inherited from MemoryArrayT.) | |
Colorize(Color) |
Creates a linear palette based on the provided color.
| |
Colorize(Color, Double) |
Creates a linear palette based on the provided color.
| |
Colorize(Color, Int32) |
Creates a linear palette based on the provided color.
| |
CopyFrom(Palette) |
Copies the values from the specified Palette to this instance.
| |
CopyFrom(Palette, Int32) |
Copies the values from the specified Palette to this instance,
starting at the specified offset.
| |
CopyFrom(T, Int32, Int32, Int32) |
Copies a range of elements from the array starting at the specified
sourceIndex and pastes them to the unmanaged array
starting at the specified destinationIndex.
The length and the indexes are specified as 32-bit integers.
(Inherited from MemoryArrayT.) | |
CopyTo(Array, Int32) |
Copies the entire array to a compatible one-dimensional Array,
starting at the specified index of the target array.
(Inherited from MemoryArrayT.) | |
CopyTo(T, Int32, Int32, Int32) |
Copies a range of elements from the unmanaged array starting at the specified
sourceIndex and pastes them to array
starting at the specified destinationIndex.
The length and the indexes are specified as 32-bit integers.
(Inherited from MemoryArrayT.) | |
CreateGrayscalePalette |
Creates a linear grayscale palette.
| |
CreateGrayscalePalette(Boolean) |
Creates a linear grayscale palette.
| |
CreateGrayscalePalette(Color, Boolean) |
Creates a linear palette with the specified Color.
| |
Dispose |
Releases all ressources.
(Inherited from MemoryArrayT.) | |
Equals(Object) |
Tests whether the specified MemoryArrayT structure is equivalent to this
MemoryArrayT structure.
(Inherited from MemoryArrayT.) | |
Equals(MemoryArrayT) |
Tests whether the specified MemoryArrayT structure is equivalent to this
MemoryArrayT structure.
(Inherited from MemoryArrayT.) | |
GetEnumerator |
Retrieves an object that can iterate through the individual
elements in this MemoryArrayT.
(Inherited from MemoryArrayT.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from MemoryArrayT.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gets the value at the specified position.
(Inherited from MemoryArrayT.) | |
GetValues |
Gets the values at the specified position and length.
(Inherited from MemoryArrayT.) | |
Load(BinaryReader) |
Loads a palette from the reader.
| |
Load(Stream) |
Loads a palette from the specified stream.
| |
Load(String) |
Loads a palette from the specified file.
| |
Reverse |
Reverses the palette.
| |
Save(BinaryWriter) |
Saves this Palette using the specified writer.
| |
Save(Stream) |
Saves this Palette to the specified stream.
| |
Save(String) |
Saves this Palette to the specified file.
| |
SetValue |
Sets a value to the element at the specified position.
(Inherited from MemoryArrayT.) | |
SetValues |
Sets the values at the specified position.
(Inherited from MemoryArrayT.) | |
ToArray |
Returns the palette as an array of RGBQUAD.
| |
ToByteArray |
Returns the represented block of memory as an array of Byte.
(Inherited from MemoryArrayT.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also