Palette Class

FreeImage.NET

Palette Class
Provides methods for working with the standard bitmap palette.
Inheritance Hierarchy
SystemObject  FreeImageAPIMemoryArrayRGBQUAD
    FreeImageAPIPalette

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
  NameDescription
Public methodPalette(Color)
Initializes a new instance for the given array of Color that contains a palette.
Public methodPalette(Int32)
Initializes a new instance with the specified size.
Public methodPalette(FIBITMAP)
Initializes a new instance for the given FreeImage bitmap.
Public methodPalette(FITAG)
Initializes a new instance for the given FITAG that contains a palette.
Public methodPalette(MetadataTag)
Initializes a new instance for the given MetadataTag that contains a palette.
Public methodPalette(RGBQUAD)
Initializes a new instance for the given array of RGBQUAD that contains a palette.
Top
Properties
  NameDescription
Public propertyAsArray
Gets or sets the palette through an array of RGBQUAD.
Public propertyBaseAddress
Gets the base address of the represented memory block.
(Inherited from MemoryArrayT.)
Public propertyCount
Gets a 32-bit integer that represents the total number of elements in the MemoryArrayT.
(Inherited from MemoryArrayT.)
Public propertyData
Gets or sets the values of the unmanaged array.
(Inherited from MemoryArrayT.)
Public propertyIsSynchronized
Gets a value indicating whether access to the MemoryArrayT is synchronized (thread safe).
(Inherited from MemoryArrayT.)
Public propertyItem
Gets or sets the value at the specified position in the array.
(Inherited from MemoryArrayT.)
Public propertyLength
Gets the length of the unmanaged array.
(Inherited from MemoryArrayT.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the MemoryArrayT.
(Inherited from MemoryArrayT.)
Top
Methods
  NameDescription
Public methodClone
Creates a shallow copy of the MemoryArrayT.
(Inherited from MemoryArrayT.)
Public methodColorize(Color)
Creates a linear palette based on the provided color.
Public methodColorize(Color, Double)
Creates a linear palette based on the provided color.
Public methodColorize(Color, Int32)
Creates a linear palette based on the provided color.
Public methodCopyFrom(Palette)
Copies the values from the specified Palette to this instance.
Public methodCopyFrom(Palette, Int32)
Copies the values from the specified Palette to this instance, starting at the specified offset.
Public methodCopyFrom(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.)
Public methodCopyTo(Array, Int32)
Copies the entire array to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from MemoryArrayT.)
Public methodCopyTo(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.)
Public methodCreateGrayscalePalette
Creates a linear grayscale palette.
Public methodCreateGrayscalePalette(Boolean)
Creates a linear grayscale palette.
Public methodCreateGrayscalePalette(Color, Boolean)
Creates a linear palette with the specified Color.
Public methodDispose
Releases all ressources.
(Inherited from MemoryArrayT.)
Public methodEquals(Object)
Tests whether the specified MemoryArrayT structure is equivalent to this MemoryArrayT structure.
(Inherited from MemoryArrayT.)
Public methodEquals(MemoryArrayT)
Tests whether the specified MemoryArrayT structure is equivalent to this MemoryArrayT structure.
(Inherited from MemoryArrayT.)
Public methodGetEnumerator
Retrieves an object that can iterate through the individual elements in this MemoryArrayT.
(Inherited from MemoryArrayT.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from MemoryArrayT.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Gets the value at the specified position.
(Inherited from MemoryArrayT.)
Public methodGetValues
Gets the values at the specified position and length.
(Inherited from MemoryArrayT.)
Public methodLoad(BinaryReader)
Loads a palette from the reader.
Public methodLoad(Stream)
Loads a palette from the specified stream.
Public methodLoad(String)
Loads a palette from the specified file.
Public methodReverse
Reverses the palette.
Public methodSave(BinaryWriter)
Saves this Palette using the specified writer.
Public methodSave(Stream)
Saves this Palette to the specified stream.
Public methodSave(String)
Saves this Palette to the specified file.
Public methodSetValue
Sets a value to the element at the specified position.
(Inherited from MemoryArrayT.)
Public methodSetValues
Sets the values at the specified position.
(Inherited from MemoryArrayT.)
Public methodToArray
Returns the palette as an array of RGBQUAD.
Public methodToByteArray
Returns the represented block of memory as an array of Byte.
(Inherited from MemoryArrayT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also