Class ColorRangeTable
A collection of 16 ranges that composes the PAL ColorRange table.
Implements
Namespace: DIV2.Format.Exporter
Assembly: DIV2.Format.Exporter.dll
Syntax
public sealed class ColorRangeTable : object, ISerializableAsset, IEnumerable<ColorRange>
Remarks
The color ranges are used only in DIV Games Studio color and drawing tools. Not are used in games. By default is enough to creates a ColorRangeTable with default values.
Constructors
ColorRangeTable()
Creates a new ColorRangeTable with default ColorRange values.
Declaration
public ColorRangeTable()
ColorRangeTable(Byte[])
Creates a new ColorRangeTable from memory.
Declaration
public ColorRangeTable(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | A |
Fields
LENGTH
Declaration
public const int LENGTH = null
Field Value
Type | Description |
---|---|
Int32 | Number of ColorRanges in the table. |
SIZE
Declaration
public const int SIZE = null
Field Value
Type | Description |
---|---|
Int32 | Memory size of the color range table. |
Properties
Item[Int32]
Gets or sets the ColorRange value.
Declaration
public ColorRange this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the range. |
Property Value
Type | Description |
---|---|
ColorRange | Returns the ColorRange value. |
Methods
GetHashCode()
Generates a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns an |
ToString()
Serializes the relevant data of this instance in a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | Returns a |
Operators
Equality(ColorRangeTable, ColorRangeTable)
Equality operator.
Declaration
public static bool operator ==(ColorRangeTable a, ColorRangeTable b)
Parameters
Type | Name | Description |
---|---|---|
ColorRangeTable | a | Left ColorRangeTable value to compare. |
ColorRangeTable | b | Right ColorRangeTable value to compare. |
Returns
Type | Description |
---|---|
Boolean | Returns true if both values are equal. |
Inequality(ColorRangeTable, ColorRangeTable)
Inequality operator.
Declaration
public static bool operator !=(ColorRangeTable a, ColorRangeTable b)
Parameters
Type | Name | Description |
---|---|---|
ColorRangeTable | a | Left ColorRangeTable value to compare. |
ColorRangeTable | b | Right ColorRangeTable value to compare. |
Returns
Type | Description |
---|---|
Boolean | Returns true if both values are not equal. |