C# Class ThemeEditor.Common.Graphics.RawTexture

Show file Open project: usagirei/3DS-Theme-Editor Class Usage Examples

Public Properties

Property Type Description
Data byte[]
Height int
Width int

Public Methods

Method Description
DecToCoord ( uint dec, uint &x, uint &y ) : void
Decode ( ) : byte[]
Encode ( byte bgrData ) : void
Encode ( byte bgrData, int width, int height, DataFormat format ) : void
RawTexture ( ) : System
RawTexture ( int width, int height, DataFormat format ) : System
RawTexture ( int width, int height, DataFormat format, byte data ) : System
Read ( Stream s ) : void
ToString ( ) : string

Private Methods

Method Description
CoordToDec ( uint x, uint y ) : uint
Decode_A8 ( ) : byte[]
Decode_Bgr565 ( ) : byte[]
Decode_Bgr888 ( ) : byte[]
Encode_A8 ( byte bgrData ) : void
Encode_Rgb565 ( byte bgrData ) : void
Encode_Rgb888 ( byte bgrData ) : void
GreatestCommonMultiple ( int num, int mult ) : int
NextLargestPowerOfTwo ( int x ) : int

Method Details

DecToCoord() public static method

public static DecToCoord ( uint dec, uint &x, uint &y ) : void
dec uint
x uint
y uint
return void

Decode() public method

public Decode ( ) : byte[]
return byte[]

Encode() public method

public Encode ( byte bgrData ) : void
bgrData byte
return void

Encode() public method

public Encode ( byte bgrData, int width, int height, DataFormat format ) : void
bgrData byte
width int
height int
format DataFormat
return void

RawTexture() public method

public RawTexture ( ) : System
return System

RawTexture() public method

public RawTexture ( int width, int height, DataFormat format ) : System
width int
height int
format DataFormat
return System

RawTexture() public method

public RawTexture ( int width, int height, DataFormat format, byte data ) : System
width int
height int
format DataFormat
data byte
return System

Read() public method

public Read ( Stream s ) : void
s Stream
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

Data public property

public byte[] Data
return byte[]

Height public property

public int Height
return int

Width public property

public int Width
return int