C# Class Glare.Assets.PaletteAsset

A collection of color values.
Inheritance: Asset
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Protected Properties

Свойство Type Description
ColorsMutable Codex

Méthodes publiques

Méthode Description
Browse ( Action progressUpdateCallback = null ) : Control

Produces a picture box showing the colors.

PaletteAsset ( AssetManager manager, string name ) : System

Initialise the asset.

PaletteAsset ( AssetManager manager, string name, IEnumerable colors ) : System

Initialise the asset.

PaletteAsset ( FolderAsset folder, string name ) : System

Initialise the asset.

PaletteAsset ( FolderAsset folder, string name, IEnumerable colors ) : System

Initialise the asset.

ReadRgb ( AssetManager manager, string name, BinaryReader reader, int count, int max, int transparentIndex = -1, IEnumerable leftPadding = null, IEnumerable rightPadding = null ) : PaletteAsset

Read a PaletteAsset from the BinaryReader.

Method Details

Browse() public méthode

Produces a picture box showing the colors.
public Browse ( Action progressUpdateCallback = null ) : Control
progressUpdateCallback Action
Résultat System.Windows.Forms.Control

PaletteAsset() public méthode

Initialise the asset.
public PaletteAsset ( AssetManager manager, string name ) : System
manager AssetManager
name string
Résultat System

PaletteAsset() public méthode

Initialise the asset.
public PaletteAsset ( AssetManager manager, string name, IEnumerable colors ) : System
manager AssetManager
name string
colors IEnumerable
Résultat System

PaletteAsset() public méthode

Initialise the asset.
public PaletteAsset ( FolderAsset folder, string name ) : System
folder FolderAsset
name string
Résultat System

PaletteAsset() public méthode

Initialise the asset.
public PaletteAsset ( FolderAsset folder, string name, IEnumerable colors ) : System
folder FolderAsset
name string
colors IEnumerable
Résultat System

ReadRgb() public static méthode

Read a PaletteAsset from the BinaryReader.
public static ReadRgb ( AssetManager manager, string name, BinaryReader reader, int count, int max, int transparentIndex = -1, IEnumerable leftPadding = null, IEnumerable rightPadding = null ) : PaletteAsset
manager AssetManager
name string
reader System.IO.BinaryReader
count int
max int
transparentIndex int
leftPadding IEnumerable Colors that are added to the start of the palette, if non-null.
rightPadding IEnumerable Colors that are added to the end of the palette, if non-null.
Résultat PaletteAsset

Property Details

ColorsMutable protected_oe property

Get the collection of colors.
protected Codex ColorsMutable
Résultat Codex