C# Class HyoutaTools.Other.PSP.GIM.ImageSection

Inheritance: ISection
Datei anzeigen Open project: AdmiralCurtiss/HyoutaTools Class Usage Examples

Public Properties

Property Type Description
ColorDepth ushort
DataOffset ushort
Format ImageFormat
FrameCount ushort
Height ushort
ImageCount uint
ImageOffsets uint[]
Images List>
ImagesRawBytes byte[][]
LayerCount ushort
Offset int
PartSize uint
PartSizeDuplicate uint
PartSizeMinus0x10 uint
PixelOrder ushort
Type ushort
Unknown ushort
Unknown10 ushort
Unknown11 ushort
Unknown12 uint
Unknown13 uint
Unknown14 uint
Unknown15 ushort
Unknown17 ushort
Unknown2 uint
Unknown3 ushort
Unknown7 ushort
Unknown8 ushort
Unknown9 ushort
Width ushort

Public Methods

Method Description
ConvertToTruecolor ( int imageNumber, List Palette ) : void
CovertToPaletted ( int imageNumber, uint NewPalette ) : void
DiscardUnusedColorsPaletted ( int imageNumber, PaletteSection paletteSection, int paletteNumber ) : void
GetBitPerPixel ( ) : int
GetPartSize ( ) : uint
ImageSection ( byte File, int Offset ) : System
Recalculate ( int NewFilesize ) : void
Serialize ( ) : byte[]

Method Details

ConvertToTruecolor() public method

public ConvertToTruecolor ( int imageNumber, List Palette ) : void
imageNumber int
Palette List
return void

CovertToPaletted() public method

public CovertToPaletted ( int imageNumber, uint NewPalette ) : void
imageNumber int
NewPalette uint
return void

DiscardUnusedColorsPaletted() public method

public DiscardUnusedColorsPaletted ( int imageNumber, PaletteSection paletteSection, int paletteNumber ) : void
imageNumber int
paletteSection PaletteSection
paletteNumber int
return void

GetBitPerPixel() public method

public GetBitPerPixel ( ) : int
return int

GetPartSize() public method

public GetPartSize ( ) : uint
return uint

ImageSection() public method

public ImageSection ( byte File, int Offset ) : System
File byte
Offset int
return System

Recalculate() public method

public Recalculate ( int NewFilesize ) : void
NewFilesize int
return void

Serialize() public method

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

Property Details

ColorDepth public_oe property

public ushort ColorDepth
return ushort

DataOffset public_oe property

public ushort DataOffset
return ushort

Format public_oe property

public ImageFormat Format
return ImageFormat

FrameCount public_oe property

public ushort FrameCount
return ushort

Height public_oe property

public ushort Height
return ushort

ImageCount public_oe property

public uint ImageCount
return uint

ImageOffsets public_oe property

public uint[] ImageOffsets
return uint[]

Images public_oe property

public List> Images
return List>

ImagesRawBytes public_oe property

public byte[][] ImagesRawBytes
return byte[][]

LayerCount public_oe property

public ushort LayerCount
return ushort

Offset public_oe property

public int Offset
return int

PartSize public_oe property

public uint PartSize
return uint

PartSizeDuplicate public_oe property

public uint PartSizeDuplicate
return uint

PartSizeMinus0x10 public_oe property

public uint PartSizeMinus0x10
return uint

PixelOrder public_oe property

public ushort PixelOrder
return ushort

Type public_oe property

public ushort Type
return ushort

Unknown public_oe property

public ushort Unknown
return ushort

Unknown10 public_oe property

public ushort Unknown10
return ushort

Unknown11 public_oe property

public ushort Unknown11
return ushort

Unknown12 public_oe property

public uint Unknown12
return uint

Unknown13 public_oe property

public uint Unknown13
return uint

Unknown14 public_oe property

public uint Unknown14
return uint

Unknown15 public_oe property

public ushort Unknown15
return ushort

Unknown17 public_oe property

public ushort Unknown17
return ushort

Unknown2 public_oe property

public uint Unknown2
return uint

Unknown3 public_oe property

public ushort Unknown3
return ushort

Unknown7 public_oe property

public ushort Unknown7
return ushort

Unknown8 public_oe property

public ushort Unknown8
return ushort

Unknown9 public_oe property

public ushort Unknown9
return ushort

Width public_oe property

public ushort Width
return ushort