C# Class Nintenlord.ROMHacking.GBA.GBAGraphics

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

Public Methods

Method Description
BitsPerPixel ( GraphicsMode mode ) : int
GenerateGBAImage ( Bitmap bitmap, GraphicsMode mode ) : byte[][]
RawGraphicsLength ( Size size, GraphicsMode mode ) : int
TSAmap ( byte graphics, GraphicsMode mode, byte TSAdata, int offset, Size TSAsize ) : byte[]

ToBitmap ( byte GBAGraphics, int length, Color palette, int width, GraphicsMode mode, int &emptyGraphicBlocks ) : Bitmap
ToBitmap ( byte GBAGraphics, int length, int index, Color palette, int width, GraphicsMode mode, int &emptyGraphicBlocks ) : Bitmap
ToGBARaw ( Bitmap image, Color palette, GraphicsMode mode ) : byte[]
toGBAcolor ( Color color ) : ushort
toGBAcolor ( int red, int green, int blue ) : ushort
toPalette ( byte data, int offset, int amountOfColours ) : Color[]
toRawGBAPalette ( Color palette ) : byte[]

Private Methods

Method Description
FromBitmapIndexed ( byte GBAGraphics, int length, Color palette, int width, int &emptyGraphicBlocks ) : Bitmap
FromBitmapTrueColour ( byte GBAGraphics, int length, Color palette, int width, int &emptyGraphicBlocks ) : Bitmap
FromTile4bit ( byte GBAGraphics, int length, Color palette, int width, int &emptyGraphicBlocks ) : Bitmap
FromTile8bit ( byte GBAGraphics, int length, Color palette, int width, int &emptyGraphicBlocks ) : Bitmap
Quantazase ( Bitmap bitmap ) : Bitmap
TSAmapFrom4bitTileGraphics ( byte graphics, int amountOfGraphicsBlocks, byte TSAdata, Size TSAsize ) : byte[]
TSAmapFrom8bitTileGraphics ( byte graphics, int amountOfGraphicsBlocks, byte TSAdata, Size TSAsize ) : byte[]
ToBitmapIndexed ( Bitmap image, Color palette ) : byte[]
ToBitmapTrueColour ( Bitmap image ) : byte[]
ToTile4bit ( Bitmap image, Color palette ) : byte[]
ToTile8bit ( Bitmap image, Color palette ) : byte[]
bitmapCoordinate ( int position, int widht ) : Point
bitmapPosition ( Point coordinate, int widht ) : int
paletteMaker ( Color palette, System.Drawing.Imaging.ColorPalette original ) : System.Drawing.Imaging.ColorPalette
tiledCoordinate ( int position, int widht, int tileDimension ) : Point
tiledPosition ( Point coordinate, int widht, int tileDimension ) : int
toColor ( ushort GBAColor ) : Color
toPalette ( ushort GBAPalette, int amountOfColours ) : Color[]

Method Details

BitsPerPixel() public static method

public static BitsPerPixel ( GraphicsMode mode ) : int
mode GraphicsMode
return int

GenerateGBAImage() public static method

public static GenerateGBAImage ( Bitmap bitmap, GraphicsMode mode ) : byte[][]
bitmap System.Drawing.Bitmap
mode GraphicsMode
return byte[][]

RawGraphicsLength() public static method

public static RawGraphicsLength ( Size size, GraphicsMode mode ) : int
size System.Drawing.Size
mode GraphicsMode
return int

TSAmap() public static method

public static TSAmap ( byte graphics, GraphicsMode mode, byte TSAdata, int offset, Size TSAsize ) : byte[]
graphics byte
mode GraphicsMode
TSAdata byte
offset int
TSAsize System.Drawing.Size
return byte[]

ToBitmap() public static method

public static ToBitmap ( byte GBAGraphics, int length, Color palette, int width, GraphicsMode mode, int &emptyGraphicBlocks ) : Bitmap
GBAGraphics byte
length int
palette Color
width int
mode GraphicsMode
emptyGraphicBlocks int
return System.Drawing.Bitmap

ToBitmap() public static method

public static ToBitmap ( byte GBAGraphics, int length, int index, Color palette, int width, GraphicsMode mode, int &emptyGraphicBlocks ) : Bitmap
GBAGraphics byte
length int
index int
palette Color
width int
mode GraphicsMode
emptyGraphicBlocks int
return System.Drawing.Bitmap

ToGBARaw() public static method

public static ToGBARaw ( Bitmap image, Color palette, GraphicsMode mode ) : byte[]
image System.Drawing.Bitmap
palette Color
mode GraphicsMode
return byte[]

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

toPalette() public static method

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

toRawGBAPalette() public static method

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