Search Results for

    Show / Hide Table of Contents

    Class ColorRangeTable

    A collection of 16 ranges that composes the PAL ColorRange table.

    Inheritance
    Object
    ColorRangeTable
    Implements
    IEnumerable<ColorRange>
    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 array that contains a ColorRangeTable data.

    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 SHA256 hash code from the MD5 hash created by the binary serialized data of this instance.

    ToString()

    Serializes the relevant data of this instance in a value.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Returns a value with the relevant serialized data in JSON format.

    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.

    Implements

    IEnumerable<>
    In This Article
    Back to top
    DIV2.Format.Exporter © Visual Studio EX3, José Miguel Sánchez Fernández - 2020 - 2022 | Site generated with DocFX