C# Class Nintenlord.ROMHacking.GBA.Graphics.GBAPalette

显示文件 Open project: Diegoisawesome/AwesomeMapEditor-old Class Usage Examples

Public Methods

Method Description
GBAPalette ( Color palette ) : System
GBAPalette ( Color palette, int index ) : System
GBAPalette ( Color palette, int index, int length ) : System
GetFromBinary ( byte data ) : GBAPalette
GetFromBinary ( byte data, int index ) : GBAPalette
GetFromBinary ( byte data, int index, int length ) : GBAPalette
GetGBAColors ( IEnumerable colors ) : HashSet
IsInvalidGBAColour ( Color &c ) : bool
NormalizeToGBA ( Color &color ) : void
ToColor ( IRGBColor color ) : Color
ToGBAColors ( byte data, int index, int colorAmount ) : Color5bpc[]
ToPalette ( byte data, int offset, int amountOfColours ) : Color[]
this ( int i ) : Color
this ( int pal, int c ) : Color
toGBAcolor ( Color color ) : ushort
toGBAcolor ( int red, int green, int blue ) : ushort
toRawGBAPalette ( Color palette ) : byte[]

Private Methods

Method Description
GBAPalette ( ) : System
ValidateColors ( int index, int length ) : void
toColor ( ushort GBAColor ) : Color
toPalette ( ushort GBAPalette, int amountOfColours ) : Color[]

Method Details

GBAPalette() public method

public GBAPalette ( Color palette ) : System
palette Color
return System

GBAPalette() public method

public GBAPalette ( Color palette, int index ) : System
palette Color
index int
return System

GBAPalette() public method

public GBAPalette ( Color palette, int index, int length ) : System
palette Color
index int
length int
return System

GetFromBinary() public static method

public static GetFromBinary ( byte data ) : GBAPalette
data byte
return GBAPalette

GetFromBinary() public static method

public static GetFromBinary ( byte data, int index ) : GBAPalette
data byte
index int
return GBAPalette

GetFromBinary() public static method

public static GetFromBinary ( byte data, int index, int length ) : GBAPalette
data byte
index int
length int
return GBAPalette

GetGBAColors() public static method

public static GetGBAColors ( IEnumerable colors ) : HashSet
colors IEnumerable
return HashSet

IsInvalidGBAColour() public static method

public static IsInvalidGBAColour ( Color &c ) : bool
c Color
return bool

NormalizeToGBA() public static method

public static NormalizeToGBA ( Color &color ) : void
color Color
return void

ToColor() public static method

public static ToColor ( IRGBColor color ) : Color
color IRGBColor
return Color

ToGBAColors() public static method

public static ToGBAColors ( byte data, int index, int colorAmount ) : Color5bpc[]
data byte
index int
colorAmount int
return Color5bpc[]

ToPalette() public static method

public static ToPalette ( byte data, int offset, int amountOfColours ) : Color[]
data byte
offset int
amountOfColours int
return Color[]

this() public method

public this ( int i ) : Color
i int
return Color

this() public method

public this ( int pal, int c ) : Color
pal int
c int
return Color

toGBAcolor() public static method

public static toGBAcolor ( Color color ) : ushort
color Color
return ushort

toGBAcolor() public static method

public static toGBAcolor ( int red, int green, int blue ) : ushort
red int
green int
blue int
return ushort

toRawGBAPalette() public static method

public static toRawGBAPalette ( Color palette ) : byte[]
palette Color
return byte[]