C# Class Nintenlord.GBA.GBAGraphics

Show file Open project: Diegoisawesome/AwesomeMapEditor-old

Public Methods

Method Description
GBAPalette ( byte GBAPalette ) : Color[]
GBAPalette ( ushort GBAPalette, int amountOfColours ) : Color[]
ToBitmap ( byte GBAGraphics, int length, int Width, Color palette, int &emptyGraphicPlocks, PixelFormat pixelFormat ) : Bitmap
ToGBARaw ( Bitmap bitmap, int emptyGraphicsBlocks, bool largePalette, Color palette ) : byte[]
ToGBARaw ( Bitmap bitmap, int emptyGraphicsBlocks, bool largePalette, List palette ) : byte[]
ToGBARawFromIndexed ( Bitmap bitmap, int emptyGraphicsBlocks ) : byte[]
getPalette ( Bitmap bitmap ) : List

Private Methods

Method Description
ToBitmap ( byte GBAGraphics, int length, int Width, Color palette, int &emptyGraphicPlocks ) : Bitmap
ToIndexedBitmap ( byte GBAGraphics, int length, int Width, Color palette, int &emptyGraphicPlocks ) : Bitmap
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

Method Details

GBAPalette() public static method

public static GBAPalette ( byte GBAPalette ) : Color[]
GBAPalette byte
return Color[]

GBAPalette() public static method

public static GBAPalette ( ushort GBAPalette, int amountOfColours ) : Color[]
GBAPalette ushort
amountOfColours int
return Color[]

ToBitmap() public static method

public static ToBitmap ( byte GBAGraphics, int length, int Width, Color palette, int &emptyGraphicPlocks, PixelFormat pixelFormat ) : Bitmap
GBAGraphics byte
length int
Width int
palette Color
emptyGraphicPlocks int
pixelFormat PixelFormat
return System.Drawing.Bitmap

ToGBARaw() public static method

public static ToGBARaw ( Bitmap bitmap, int emptyGraphicsBlocks, bool largePalette, Color palette ) : byte[]
bitmap System.Drawing.Bitmap
emptyGraphicsBlocks int
largePalette bool
palette Color
return byte[]

ToGBARaw() public static method

public static ToGBARaw ( Bitmap bitmap, int emptyGraphicsBlocks, bool largePalette, List palette ) : byte[]
bitmap System.Drawing.Bitmap
emptyGraphicsBlocks int
largePalette bool
palette List
return byte[]

ToGBARawFromIndexed() public static method

public static ToGBARawFromIndexed ( Bitmap bitmap, int emptyGraphicsBlocks ) : byte[]
bitmap System.Drawing.Bitmap
emptyGraphicsBlocks int
return byte[]

getPalette() public static method

public static getPalette ( Bitmap bitmap ) : List
bitmap System.Drawing.Bitmap
return List