![]() |
Paradox Game Engine
v1.0.0 beta06
|
Provides methods for working with the standard bitmap palette. More...
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... | |
![]() | |
MemoryArray (IntPtr baseAddress, int length) | |
Initializes a new instance of the MemoryArray<T> class. More... | |
MemoryArray (void *baseAddress, int length) | |
Initializes a new instance of the MemoryArray<T> class. More... | |
T | 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<T>. More... | |
IEnumerator | GetEnumerator () |
Retrieves an object that can iterate through the individual elements in this MemoryArray<T>. More... | |
void | Dispose () |
Releases all ressources. More... | |
override bool | Equals (object obj) |
Tests whether the specified MemoryArray<T> structure is equivalent to this MemoryArray<T> structure. More... | |
bool | Equals (MemoryArray< T > other) |
Tests whether the specified MemoryArray<T> structure is equivalent to this MemoryArray<T> 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<T> class. More... | |
MemoryArray (void *baseAddress, int length) | |
Initializes a new instance of the MemoryArray<T> class. More... | |
T | 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<T>. More... | |
IEnumerator | GetEnumerator () |
Retrieves an object that can iterate through the individual elements in this MemoryArray<T>. More... | |
void | Dispose () |
Releases all ressources. More... | |
override bool | Equals (object obj) |
Tests whether the specified MemoryArray<T> structure is equivalent to this MemoryArray<T> structure. More... | |
bool | Equals (MemoryArray< T > other) |
Tests whether the specified MemoryArray<T> structure is equivalent to this MemoryArray<T> 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... | |
![]() | |
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... | |
![]() | |
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<T>. More... | |
bool | IsSynchronized [get] |
Gets a value indicating whether access to the MemoryArray<T> is synchronized (thread safe). More... | |
object | SyncRoot [get] |
Gets an object that can be used to synchronize access to the MemoryArray<T>. More... | |
Additional Inherited Members | |
![]() | |
static bool | operator== (MemoryArray< T > left, MemoryArray< T > right) |
Tests whether two specified MemoryArray<T> structures are equivalent. More... | |
static bool | operator!= (MemoryArray< T > left, MemoryArray< T > right) |
Tests whether two specified MemoryArray<T> structures are different. More... | |
static bool | operator== (MemoryArray< T > left, MemoryArray< T > right) |
Tests whether two specified MemoryArray<T> structures are equivalent. More... | |
static bool | operator!= (MemoryArray< T > left, MemoryArray< T > right) |
Tests whether two specified MemoryArray<T> structures are different. More... | |
![]() | |
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... | |
![]() | |
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<T>. More... | |
Provides methods for working with the standard bitmap palette.
Definition at line 15 of file Palette.cs.
FreeImageAPI.Palette.Palette | ( | FIBITMAP | dib | ) |
Initializes a new instance for the given FreeImage bitmap.
dib | Handle to a FreeImage bitmap. |
ArgumentNullException | dib is null. |
ArgumentException | dib 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.
tag | The tag containing the palette. |
ArgumentNullException | tag is null. |
ArgumentException | tag 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.
tag | The tag containing the palette. |
ArgumentException | tag 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.
palette | A 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.
palette | A 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.
size | The 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.
dib | Handle to a FreeImage bitmap. |
ArgumentNullException | dib is null. |
ArgumentException | dib 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.
tag | The tag containing the palette. |
ArgumentNullException | tag is null. |
ArgumentException | tag 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.
tag | The tag containing the palette. |
ArgumentNullException | dib is null. |
ArgumentException | tag 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.
palette | A 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.
palette | A 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.
size | The size of the palette. |
Definition at line 126 of file Palette.cs.
void FreeImageAPI.Palette.Colorize | ( | Color | color | ) |
Creates a linear palette based on the provided color .
color | The 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 .
color | The 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 .
color | The System.Drawing.Color used to colorize the palette. |
splitSize | The 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 .
color | The System.Drawing.Color used to colorize the palette. |
splitSize | The 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 .
color | The System.Drawing.Color used to colorize the palette. |
splitSize | The position of the color within the new palette. 0 < splitSize < MemoryArray<T>.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 .
color | The System.Drawing.Color used to colorize the palette. |
splitSize | The position of the color within the new palette. 0 < splitSize < MemoryArray<T>.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.
palette | The palette to copy from. |
ArgumentNullException | palette 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.
palette | The palette to copy from. |
ArgumentNullException | palette 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 .
palette | The palette to copy from. |
offset | The position in this instance where the values will be copied to. |
ArgumentNullException | palette is a null reference. |
ArgumentOutOfRangeException | offset 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 .
palette | The palette to copy from. |
offset | The position in this instance where the values will be copied to. |
ArgumentNullException | palette is a null reference. |
ArgumentOutOfRangeException | offset 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.
inverse | true 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.
inverse | true 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.
color | The Color used to create the palette. |
inverse | true 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.
color | The Color used to create the palette. |
inverse | true to create an inverse palette. |
Definition at line 277 of file Palette.cs.
References FreeImageAPI.Palette.Colorize(), and FreeImageAPI.MemoryArray< T >.length.
|
protectedvirtual |
Releases allocated handles associated with this instance.
disposing | true to release managed resources. |
Reimplemented from FreeImageAPI.MemoryArray< T >.
Definition at line 412 of file Palette.cs.
|
protectedvirtual |
Releases allocated handles associated with this instance.
disposing | true 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.
filename | The 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.
filename | The 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.
stream | The 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.
stream | The 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.
reader | The 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.
reader | The 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.
filename | A 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.
filename | A 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.
stream | The 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.
stream | The 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.
writer | The 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.
writer | The 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.
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.
Definition at line 168 of file Palette.cs.
References FreeImageAPI.MemoryArray< T >.Data.
|
getset |
Gets or sets the palette through an array of RGBQUAD.
Definition at line 134 of file Palette.cs.