C# Class TrainerEditor.LZ77Handler

显示文件 Open project: Jambo51/Trainer_Editor Class Usage Examples

Public Methods

Method Description
LoadPalette ( int paletteLocation, byte rom, bool showBackgroundColours ) : Color[]
LoadSprite ( int spriteLocation, int paletteLocation, byte rom, bool showBackgroundColours ) : Bitmap
WritePalette ( int writeLocation, byte rom, Color palette ) : void
WriteSprite ( int writeLocation, byte rom, Bitmap sprite, Color palette ) : void

Private Methods

Method Description
Compress ( int decompressedSize, byte source, byte &destination ) : void
ConstructPalette ( byte palette, bool showBackgroundColours ) : Color[]
ConstructSprite ( byte bits, Color palette ) : Bitmap
ConvertBitmapTo4BPPByteArray ( Bitmap sprite, Color palette ) : byte[]
ConvertColoursToByteArray ( Color palette ) : byte[]
Decompress ( byte source, int baseLocation, byte &destination ) : void
LZ77Compress ( int inLength, Stream instream, Stream &outstream ) : int
LZ77Decompress ( Stream instream, Stream &outstream, int baseLocation ) : int
WriteLoop ( byte rom, byte data, int baseLocation ) : void
WriteLoop ( int baselocation, int length, uint value, byte rom ) : void

Method Details

LoadPalette() public method

public LoadPalette ( int paletteLocation, byte rom, bool showBackgroundColours ) : Color[]
paletteLocation int
rom byte
showBackgroundColours bool
return Color[]

LoadSprite() public method

public LoadSprite ( int spriteLocation, int paletteLocation, byte rom, bool showBackgroundColours ) : Bitmap
spriteLocation int
paletteLocation int
rom byte
showBackgroundColours bool
return System.Drawing.Bitmap

WritePalette() public method

public WritePalette ( int writeLocation, byte rom, Color palette ) : void
writeLocation int
rom byte
palette Color
return void

WriteSprite() public method

public WriteSprite ( int writeLocation, byte rom, Bitmap sprite, Color palette ) : void
writeLocation int
rom byte
sprite System.Drawing.Bitmap
palette Color
return void