Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
FreeImageAPI.Palette Class Reference

Provides methods for working with the standard bitmap palette. More...

Inheritance diagram for FreeImageAPI.Palette:
FreeImageAPI.MemoryArray< T > FreeImageAPI.MemoryArray< T > IEquatable< MemoryArray< T >> IEnumerable< T > ICollection ICloneable IEquatable< MemoryArray< T >> IEnumerable< T > ICollection ICloneable IEquatable< MemoryArray< T >> IEnumerable< T > ICollection ICloneable IEquatable< MemoryArray< T >> IEnumerable< T > ICollection ICloneable

Public Member Functions

 Palette (FIBITMAP dib)
 Initializes a new instance for the given FreeImage bitmap. More...
 
 Palette (FITAG tag)
 Initializes a new instance for the given FITAG that contains a palette. More...
 
 Palette (MetadataTag tag)
 Initializes a new instance for the given MetadataTag that contains a palette. More...
 
 Palette (RGBQUAD[] palette)
 Initializes a new instance for the given array of RGBQUAD that contains a palette. More...
 
 Palette (Color[] palette)
 Initializes a new instance for the given array of Color that contains a palette. More...
 
 Palette (int size)
 Initializes a new instance with the specified size. More...
 
RGBQUAD[] ToArray ()
 Returns the palette as an array of RGBQUAD. More...
 
void Colorize (Color color)
 Creates a linear palette based on the provided color . More...
 
void Colorize (Color color, double splitSize)
 Creates a linear palette based on the provided color . More...
 
void Colorize (Color color, int splitSize)
 Creates a linear palette based on the provided color . More...
 
void CreateGrayscalePalette ()
 Creates a linear grayscale palette. More...
 
void CreateGrayscalePalette (bool inverse)
 Creates a linear grayscale palette. More...
 
void CreateGrayscalePalette (Color color, bool inverse)
 Creates a linear palette with the specified Color. More...
 
void Reverse ()
 Reverses the palette. More...
 
void CopyFrom (Palette palette)
 Copies the values from the specified Palette to this instance. More...
 
void CopyFrom (Palette palette, int offset)
 Copies the values from the specified Palette to this instance, starting at the specified offset . More...
 
void Save (string filename)
 Saves this Palette to the specified file. More...
 
void Save (Stream stream)
 Saves this Palette to the specified stream. More...
 
void Save (BinaryWriter writer)
 Saves this Palette using the specified writer. More...
 
void Load (string filename)
 Loads a palette from the specified file. More...
 
void Load (Stream stream)
 Loads a palette from the specified stream. More...
 
void Load (BinaryReader reader)
 Loads a palette from the reader. More...
 
 Palette (FIBITMAP dib)
 Initializes a new instance for the given FreeImage bitmap. More...
 
 Palette (FITAG tag)
 Initializes a new instance for the given FITAG that contains a palette. More...
 
 Palette (MetadataTag tag)
 Initializes a new instance for the given MetadataTag that contains a palette. More...
 
 Palette (RGBQUAD[] palette)
 Initializes a new instance for the given array of RGBQUAD that contains a palette. More...
 
 Palette (Color[] palette)
 Initializes a new instance for the given array of Color that contains a palette. More...
 
 Palette (int size)
 Initializes a new instance with the specified size. More...
 
RGBQUAD[] ToArray ()
 Returns the palette as an array of RGBQUAD. More...
 
void Colorize (Color color)
 Creates a linear palette based on the provided color . More...
 
void Colorize (Color color, double splitSize)
 Creates a linear palette based on the provided color . More...
 
void Colorize (Color color, int splitSize)
 Creates a linear palette based on the provided color . More...
 
void CreateGrayscalePalette ()
 Creates a linear grayscale palette. More...
 
void CreateGrayscalePalette (bool inverse)
 Creates a linear grayscale palette. More...
 
void CreateGrayscalePalette (Color color, bool inverse)
 Creates a linear palette with the specified Color. More...
 
void Reverse ()
 Reverses the palette. More...
 
void CopyFrom (Palette palette)
 Copies the values from the specified Palette to this instance. More...
 
void CopyFrom (Palette palette, int offset)
 Copies the values from the specified Palette to this instance, starting at the specified offset . More...
 
void Save (string filename)
 Saves this Palette to the specified file. More...
 
void Save (Stream stream)
 Saves this Palette to the specified stream. More...
 
void Save (BinaryWriter writer)
 Saves this Palette using the specified writer. More...
 
void Load (string filename)
 Loads a palette from the specified file. More...
 
void Load (Stream stream)
 Loads a palette from the specified stream. More...
 
void Load (BinaryReader reader)
 Loads a palette from the reader. More...
 
- Public Member Functions inherited from FreeImageAPI.MemoryArray< T >
 MemoryArray (IntPtr baseAddress, int length)
 Initializes a new instance of the MemoryArray&lt;T&gt; class. More...
 
 MemoryArray (void *baseAddress, int length)
 Initializes a new instance of the MemoryArray&lt;T&gt; class. More...
 
GetValue (int index)
 Gets the value at the specified position. More...
 
void SetValue (T value, int index)
 Sets a value to the element at the specified position. More...
 
T[] GetValues (int index, int length)
 Gets the values at the specified position and length. More...
 
void SetValues (T[] values, int index)
 Sets the values at the specified position. More...
 
void CopyTo (Array array, int index)
 Copies the entire array to a compatible one-dimensional System.Array, starting at the specified index of the target array. More...
 
void CopyTo (T[] array, int sourceIndex, int destinationIndex, int length)
 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. More...
 
void CopyFrom (T[] array, int sourceIndex, int destinationIndex, int length)
 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. More...
 
byte[] ToByteArray ()
 Returns the represented block of memory as an array of Byte. More...
 
object Clone ()
 Creates a shallow copy of the MemoryArray&lt;T&gt;. More...
 
IEnumerator GetEnumerator ()
 Retrieves an object that can iterate through the individual elements in this MemoryArray&lt;T&gt;. More...
 
void Dispose ()
 Releases all ressources. More...
 
override bool Equals (object obj)
 Tests whether the specified MemoryArray&lt;T&gt; structure is equivalent to this MemoryArray&lt;T&gt; structure. More...
 
bool Equals (MemoryArray< T > other)
 Tests whether the specified MemoryArray&lt;T&gt; structure is equivalent to this MemoryArray&lt;T&gt; structure. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. More...
 
 MemoryArray (IntPtr baseAddress, int length)
 Initializes a new instance of the MemoryArray&lt;T&gt; class. More...
 
 MemoryArray (void *baseAddress, int length)
 Initializes a new instance of the MemoryArray&lt;T&gt; class. More...
 
GetValue (int index)
 Gets the value at the specified position. More...
 
void SetValue (T value, int index)
 Sets a value to the element at the specified position. More...
 
T[] GetValues (int index, int length)
 Gets the values at the specified position and length. More...
 
void SetValues (T[] values, int index)
 Sets the values at the specified position. More...
 
void CopyTo (Array array, int index)
 Copies the entire array to a compatible one-dimensional System.Array, starting at the specified index of the target array. More...
 
void CopyTo (T[] array, int sourceIndex, int destinationIndex, int length)
 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. More...
 
void CopyFrom (T[] array, int sourceIndex, int destinationIndex, int length)
 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. More...
 
byte[] ToByteArray ()
 Returns the represented block of memory as an array of Byte. More...
 
object Clone ()
 Creates a shallow copy of the MemoryArray&lt;T&gt;. More...
 
IEnumerator GetEnumerator ()
 Retrieves an object that can iterate through the individual elements in this MemoryArray&lt;T&gt;. More...
 
void Dispose ()
 Releases all ressources. More...
 
override bool Equals (object obj)
 Tests whether the specified MemoryArray&lt;T&gt; structure is equivalent to this MemoryArray&lt;T&gt; structure. More...
 
bool Equals (MemoryArray< T > other)
 Tests whether the specified MemoryArray&lt;T&gt; structure is equivalent to this MemoryArray&lt;T&gt; structure. More...
 
override int GetHashCode ()
 Serves as a hash function for a particular type. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Releases allocated handles associated with this instance. More...
 
override void Dispose (bool disposing)
 Releases allocated handles associated with this instance. More...
 
- Protected Member Functions inherited from FreeImageAPI.MemoryArray< T >
 MemoryArray ()
 Initializes a new instance. More...
 
virtual void EnsureNotDisposed ()
 Throws an ObjectDisposedException if this instance is disposed. More...
 
 MemoryArray ()
 Initializes a new instance. More...
 
virtual void EnsureNotDisposed ()
 Throws an ObjectDisposedException if this instance is disposed. More...
 

Properties

RGBQUAD[] AsArray [get, set]
 Gets or sets the palette through an array of RGBQUAD. More...
 
- Properties inherited from FreeImageAPI.MemoryArray< T >
this[int index] [get, set]
 Gets or sets the value at the specified position in the array. More...
 
T[] Data [get, set]
 Gets or sets the values of the unmanaged array. More...
 
int Length [get]
 Gets the length of the unmanaged array. More...
 
IntPtr BaseAddress [get]
 Gets the base address of the represented memory block. More...
 
int Count [get]
 Gets a 32-bit integer that represents the total number of elements in the MemoryArray&lt;T&gt;. More...
 
bool IsSynchronized [get]
 Gets a value indicating whether access to the MemoryArray&lt;T&gt; is synchronized (thread safe). More...
 
object SyncRoot [get]
 Gets an object that can be used to synchronize access to the MemoryArray&lt;T&gt;. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FreeImageAPI.MemoryArray< T >
static bool operator== (MemoryArray< T > left, MemoryArray< T > right)
 Tests whether two specified MemoryArray&lt;T&gt; structures are equivalent. More...
 
static bool operator!= (MemoryArray< T > left, MemoryArray< T > right)
 Tests whether two specified MemoryArray&lt;T&gt; structures are different. More...
 
static bool operator== (MemoryArray< T > left, MemoryArray< T > right)
 Tests whether two specified MemoryArray&lt;T&gt; structures are equivalent. More...
 
static bool operator!= (MemoryArray< T > left, MemoryArray< T > right)
 Tests whether two specified MemoryArray&lt;T&gt; structures are different. More...
 
- Static Protected Member Functions inherited from FreeImageAPI.MemoryArray< T >
static unsafe void CopyMemory (byte *dest, byte *src, int len)
 Copies a block of memory from one location to another. More...
 
static unsafe void CopyMemory (byte *dest, byte *src, int len)
 Copies a block of memory from one location to another. More...
 
- Protected Attributes inherited from FreeImageAPI.MemoryArray< T >
byte * baseAddress
 Baseaddress of the wrapped memory. More...
 
int length
 Number of elements being wrapped. More...
 
T[] buffer
 Array of T containing a single element. The array is used as a workaround, because there are no pointer for generic types. More...
 
byte * ptr
 Pointer to the element of buffer. More...
 
GCHandle handle
 Handle for pinning buffer. More...
 
readonly bool isOneBit
 Indicates whether the wrapped memory is handled like a bitfield. More...
 
readonly bool isFourBit
 Indicates whther the wrapped memory is handles like 4-bit blocks. More...
 
object syncRoot = null
 An object that can be used to synchronize access to the MemoryArray&lt;T&gt;. More...
 

Detailed Description

Provides methods for working with the standard bitmap palette.

Definition at line 15 of file Palette.cs.

Constructor & Destructor Documentation

FreeImageAPI.Palette.Palette ( FIBITMAP  dib)

Initializes a new instance for the given FreeImage bitmap.

Parameters
dibHandle to a FreeImage bitmap.
Exceptions
ArgumentNullExceptiondib is null.
ArgumentExceptiondib is not FREE_IMAGE_TYPE.FIT_BITMAP

-or-

dib has more than 8bpp.

Definition at line 31 of file Palette.cs.

References FreeImageAPI.FIBITMAP.IsNull.

FreeImageAPI.Palette.Palette ( FITAG  tag)

Initializes a new instance for the given FITAG that contains a palette.

Parameters
tagThe tag containing the palette.
Exceptions
ArgumentNullExceptiontag is null.
ArgumentExceptiontag is not FREE_IMAGE_MDTYPE.FIDT_PALETTE.

Definition at line 56 of file Palette.cs.

FreeImageAPI.Palette.Palette ( MetadataTag  tag)

Initializes a new instance for the given MetadataTag that contains a palette.

Parameters
tagThe tag containing the palette.
Exceptions
ArgumentExceptiontag is not FREE_IMAGE_MDTYPE.FIDT_PALETTE.

Definition at line 72 of file Palette.cs.

FreeImageAPI.Palette.Palette ( RGBQUAD[]  palette)

Initializes a new instance for the given array of RGBQUAD that contains a palette.

Parameters
paletteA RGBQUAD array containing the palette data to initialize this instance.

Definition at line 86 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.buffer.

FreeImageAPI.Palette.Palette ( Color[]  palette)

Initializes a new instance for the given array of Color that contains a palette.

Parameters
paletteA Color array containing the palette data to initialize this instance.

Definition at line 116 of file Palette.cs.

FreeImageAPI.Palette.Palette ( int  size)

Initializes a new instance with the specified size.

Parameters
sizeThe size of the palette.

Definition at line 125 of file Palette.cs.

FreeImageAPI.Palette.Palette ( FIBITMAP  dib)

Initializes a new instance for the given FreeImage bitmap.

Parameters
dibHandle to a FreeImage bitmap.
Exceptions
ArgumentNullExceptiondib is null.
ArgumentExceptiondib is not FREE_IMAGE_TYPE.FIT_BITMAP

-or-

dib has more than 8bpp.

Definition at line 31 of file Palette.cs.

References FreeImageAPI.FIBITMAP.IsNull.

FreeImageAPI.Palette.Palette ( FITAG  tag)

Initializes a new instance for the given FITAG that contains a palette.

Parameters
tagThe tag containing the palette.
Exceptions
ArgumentNullExceptiontag is null.
ArgumentExceptiontag is not FREE_IMAGE_MDTYPE.FIDT_PALETTE.

Definition at line 56 of file Palette.cs.

FreeImageAPI.Palette.Palette ( MetadataTag  tag)

Initializes a new instance for the given MetadataTag that contains a palette.

Parameters
tagThe tag containing the palette.
Exceptions
ArgumentNullExceptiondib is null.
ArgumentExceptiontag is not FREE_IMAGE_MDTYPE.FIDT_PALETTE.

Definition at line 73 of file Palette.cs.

FreeImageAPI.Palette.Palette ( RGBQUAD[]  palette)

Initializes a new instance for the given array of RGBQUAD that contains a palette.

Parameters
paletteA RGBQUAD array containing the palette data to initialize this instance.

Definition at line 87 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.buffer.

FreeImageAPI.Palette.Palette ( Color[]  palette)

Initializes a new instance for the given array of Color that contains a palette.

Parameters
paletteA Color array containing the palette data to initialize this instance.

Definition at line 117 of file Palette.cs.

FreeImageAPI.Palette.Palette ( int  size)

Initializes a new instance with the specified size.

Parameters
sizeThe size of the palette.

Definition at line 126 of file Palette.cs.

Member Function Documentation

void FreeImageAPI.Palette.Colorize ( Color  color)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.

Only call this method on linear palettes.

Definition at line 179 of file Palette.cs.

Referenced by FreeImageAPI.Palette.Colorize(), and FreeImageAPI.Palette.CreateGrayscalePalette().

void FreeImageAPI.Palette.Colorize ( Color  color)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.

Only call this method on linear palettes.

Definition at line 180 of file Palette.cs.

References FreeImageAPI.Palette.Colorize().

void FreeImageAPI.Palette.Colorize ( Color  color,
double  splitSize 
)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.
splitSizeThe position of the color within the new palette. 0 < splitSize < 1.

Only call this method on linear palettes.

Definition at line 193 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.Colorize ( Color  color,
double  splitSize 
)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.
splitSizeThe position of the color within the new palette. 0 < splitSize < 1.

Only call this method on linear palettes.

Definition at line 194 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.Colorize ( Color  color,
int  splitSize 
)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.
splitSizeThe position of the color within the new palette. 0 < splitSize < MemoryArray&lt;T&gt;.Length.

Only call this method on linear palettes.

Definition at line 207 of file Palette.cs.

References b, FreeImageAPI.MemoryArray< T >.Data, FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.Colorize ( Color  color,
int  splitSize 
)

Creates a linear palette based on the provided color .

Parameters
colorThe System.Drawing.Color used to colorize the palette.
splitSizeThe position of the color within the new palette. 0 < splitSize < MemoryArray&lt;T&gt;.Length.

Only call this method on linear palettes.

Definition at line 208 of file Palette.cs.

References b, FreeImageAPI.MemoryArray< T >.Data, FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CopyFrom ( Palette  palette)

Copies the values from the specified Palette to this instance.

Parameters
paletteThe palette to copy from.
Exceptions
ArgumentNullExceptionpalette is a null reference.

Definition at line 305 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.Data, FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.Length.

Referenced by FreeImageAPI.Palette.CopyFrom().

void FreeImageAPI.Palette.CopyFrom ( Palette  palette)

Copies the values from the specified Palette to this instance.

Parameters
paletteThe palette to copy from.
Exceptions
ArgumentNullExceptionpalette is a null reference.

Definition at line 306 of file Palette.cs.

References FreeImageAPI.Palette.CopyFrom(), and FreeImageAPI.MemoryArray< T >.EnsureNotDisposed().

void FreeImageAPI.Palette.CopyFrom ( Palette  palette,
int  offset 
)

Copies the values from the specified Palette to this instance, starting at the specified offset .

Parameters
paletteThe palette to copy from.
offsetThe position in this instance where the values will be copied to.
Exceptions
ArgumentNullExceptionpalette is a null reference.
ArgumentOutOfRangeExceptionoffset is outside the range of valid indexes.

Definition at line 326 of file Palette.cs.

References FreeImageAPI.Palette.CopyFrom(), FreeImageAPI.MemoryArray< T >.Data, FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.Length.

void FreeImageAPI.Palette.CopyFrom ( Palette  palette,
int  offset 
)

Copies the values from the specified Palette to this instance, starting at the specified offset .

Parameters
paletteThe palette to copy from.
offsetThe position in this instance where the values will be copied to.
Exceptions
ArgumentNullExceptionpalette is a null reference.
ArgumentOutOfRangeExceptionoffset is outside the range of valid indexes.

Definition at line 327 of file Palette.cs.

References FreeImageAPI.Palette.CopyFrom(), and FreeImageAPI.MemoryArray< T >.EnsureNotDisposed().

void FreeImageAPI.Palette.CreateGrayscalePalette ( )

Creates a linear grayscale palette.

Definition at line 252 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CreateGrayscalePalette ( )

Creates a linear grayscale palette.

Definition at line 253 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CreateGrayscalePalette ( bool  inverse)

Creates a linear grayscale palette.

Parameters
inversetrue to create an inverse grayscale palette.

Definition at line 261 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CreateGrayscalePalette ( bool  inverse)

Creates a linear grayscale palette.

Parameters
inversetrue to create an inverse grayscale palette.

Definition at line 262 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CreateGrayscalePalette ( Color  color,
bool  inverse 
)

Creates a linear palette with the specified Color.

A linear grayscale palette contains all shades of colors from black to white. This method creates a similar palette with the white color being replaced by the specified color.

Parameters
colorThe Color used to create the palette.
inversetrue to create an inverse palette.

Definition at line 276 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.CreateGrayscalePalette ( Color  color,
bool  inverse 
)

Creates a linear palette with the specified Color.

A linear grayscale palette contains all shades of colors from black to white. This method creates a similar palette with the white color being replaced by the specified color.

Parameters
colorThe Color used to create the palette.
inversetrue to create an inverse palette.

Definition at line 277 of file Palette.cs.

References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.

override void FreeImageAPI.Palette.Dispose ( bool  disposing)
protectedvirtual

Releases allocated handles associated with this instance.

Parameters
disposingtrue to release managed resources.

Reimplemented from FreeImageAPI.MemoryArray< T >.

Definition at line 412 of file Palette.cs.

override void FreeImageAPI.Palette.Dispose ( bool  disposing)
protectedvirtual

Releases allocated handles associated with this instance.

Parameters
disposingtrue to release managed resources.

Reimplemented from FreeImageAPI.MemoryArray< T >.

Definition at line 413 of file Palette.cs.

void FreeImageAPI.Palette.Load ( string  filename)

Loads a palette from the specified file.

Parameters
filenameThe name of the palette file.

Definition at line 373 of file Palette.cs.

Referenced by FreeImageAPI.Palette.Load().

void FreeImageAPI.Palette.Load ( string  filename)

Loads a palette from the specified file.

Parameters
filenameThe name of the palette file.

Definition at line 374 of file Palette.cs.

References FreeImageAPI.Palette.Load().

void FreeImageAPI.Palette.Load ( Stream  stream)

Loads a palette from the specified stream.

Parameters
streamThe stream to load the palette from.

Definition at line 385 of file Palette.cs.

References FreeImageAPI.Palette.Load().

void FreeImageAPI.Palette.Load ( Stream  stream)

Loads a palette from the specified stream.

Parameters
streamThe stream to load the palette from.

Definition at line 386 of file Palette.cs.

References FreeImageAPI.Palette.Load().

void FreeImageAPI.Palette.Load ( BinaryReader  reader)

Loads a palette from the reader.

Parameters
readerThe reader to load the palette from.

Definition at line 394 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.baseAddress, FreeImageAPI.MemoryArray< T >.CopyMemory(), FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.Load ( BinaryReader  reader)

Loads a palette from the reader.

Parameters
readerThe reader to load the palette from.

Definition at line 395 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.baseAddress, FreeImageAPI.MemoryArray< T >.CopyMemory(), FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.length.

void FreeImageAPI.Palette.Reverse ( )

Reverses the palette.

Definition at line 284 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.Data, and FreeImageAPI.MemoryArray< T >.EnsureNotDisposed().

void FreeImageAPI.Palette.Reverse ( )

Reverses the palette.

Definition at line 285 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.Data, and FreeImageAPI.MemoryArray< T >.EnsureNotDisposed().

void FreeImageAPI.Palette.Save ( string  filename)

Saves this Palette to the specified file.

Parameters
filenameA string that contains the name of the file to which to save this Palette.

Definition at line 338 of file Palette.cs.

Referenced by FreeImageAPI.Palette.Save().

void FreeImageAPI.Palette.Save ( string  filename)

Saves this Palette to the specified file.

Parameters
filenameA string that contains the name of the file to which to save this Palette.

Definition at line 339 of file Palette.cs.

References FreeImageAPI.Palette.Save().

void FreeImageAPI.Palette.Save ( Stream  stream)

Saves this Palette to the specified stream.

Parameters
streamThe Stream where the image will be saved.

Definition at line 352 of file Palette.cs.

References FreeImageAPI.Palette.Save().

void FreeImageAPI.Palette.Save ( Stream  stream)

Saves this Palette to the specified stream.

Parameters
streamThe Stream where the image will be saved.

Definition at line 353 of file Palette.cs.

References FreeImageAPI.Palette.Save().

void FreeImageAPI.Palette.Save ( BinaryWriter  writer)

Saves this Palette using the specified writer.

Parameters
writerThe BinaryWriter used to save the image.

Definition at line 363 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.ToByteArray().

void FreeImageAPI.Palette.Save ( BinaryWriter  writer)

Saves this Palette using the specified writer.

Parameters
writerThe BinaryWriter used to save the image.

Definition at line 364 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.EnsureNotDisposed(), and FreeImageAPI.MemoryArray< T >.ToByteArray().

RGBQUAD [] FreeImageAPI.Palette.ToArray ( )

Returns the palette as an array of RGBQUAD.

Returns
The palette as an array of RGBQUAD.

Definition at line 167 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.Data.

RGBQUAD [] FreeImageAPI.Palette.ToArray ( )

Returns the palette as an array of RGBQUAD.

Returns
The palette as an array of RGBQUAD.

Definition at line 168 of file Palette.cs.

References FreeImageAPI.MemoryArray< T >.Data.

Property Documentation

RGBQUAD [] FreeImageAPI.Palette.AsArray
getset

Gets or sets the palette through an array of RGBQUAD.

Definition at line 134 of file Palette.cs.


The documentation for this class was generated from the following file: