C# Class AmaroK86.ImageFormat.DDSImage

Mostrar archivo Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
dwMagic int
mipMaps MipMap[]

Public Methods

Method Description
DDSImage ( string ddsFileName ) : System
ToBitmap ( byte imgData, DDSFormat ddsFormat, int w, int h ) : Bitmap
ToPictureBox ( int picBoxWidth, int picBoxHeight ) : Bitmap
View24Bit ( byte imgData, int w, int h ) : Bitmap
View32Bit ( byte imgData, int w, int h ) : Bitmap
ViewG8 ( byte imgData, int w, int h ) : Bitmap
getBytesPerPixel ( DDSFormat ddsFormat ) : double

Private Methods

Method Description
Read_DDS_HEADER ( DDS_HEADER h, BinaryReader r ) : void
Read_DDS_PIXELFORMAT ( DDS_PIXELFORMAT p, BinaryReader r ) : void
UncompressATI2 ( byte imgData, int w, int h ) : Bitmap
UncompressDXT1 ( byte imgData, int w, int h ) : Bitmap
UncompressDXT5 ( byte imgData, int w, int h ) : Bitmap
UncompressV8U8 ( byte imgData, int w, int h ) : Bitmap
getFormat ( ) : DDSFormat
readBlockImage ( byte imgData, int w, int h ) : Bitmap
readLinearImage ( byte imgData, int w, int h ) : Bitmap

Method Details

DDSImage() public method

public DDSImage ( string ddsFileName ) : System
ddsFileName string
return System

ToBitmap() public static method

public static ToBitmap ( byte imgData, DDSFormat ddsFormat, int w, int h ) : Bitmap
imgData byte
ddsFormat DDSFormat
w int
h int
return System.Drawing.Bitmap

ToPictureBox() public method

public ToPictureBox ( int picBoxWidth, int picBoxHeight ) : Bitmap
picBoxWidth int
picBoxHeight int
return System.Drawing.Bitmap

View24Bit() public static method

public static View24Bit ( byte imgData, int w, int h ) : Bitmap
imgData byte
w int
h int
return System.Drawing.Bitmap

View32Bit() public static method

public static View32Bit ( byte imgData, int w, int h ) : Bitmap
imgData byte
w int
h int
return System.Drawing.Bitmap

ViewG8() public static method

public static ViewG8 ( byte imgData, int w, int h ) : Bitmap
imgData byte
w int
h int
return System.Drawing.Bitmap

getBytesPerPixel() public static method

public static getBytesPerPixel ( DDSFormat ddsFormat ) : double
ddsFormat DDSFormat
return double

Property Details

dwMagic public_oe property

public int dwMagic
return int

mipMaps public_oe property

public MipMap[] mipMaps
return MipMap[]