C# Class Nintenlord.GBA.GBAGraphics

Afficher le fichier Open project: Diegoisawesome/AwesomeMapEditor-old

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static GBAPalette ( byte GBAPalette ) : Color[]
GBAPalette byte
Résultat Color[]

GBAPalette() public static méthode

public static GBAPalette ( ushort GBAPalette, int amountOfColours ) : Color[]
GBAPalette ushort
amountOfColours int
Résultat Color[]

ToBitmap() public static méthode

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
Résultat System.Drawing.Bitmap

ToGBARaw() public static méthode

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

ToGBARaw() public static méthode

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

ToGBARawFromIndexed() public static méthode

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

getPalette() public static méthode

public static getPalette ( Bitmap bitmap ) : List
bitmap System.Drawing.Bitmap
Résultat List