Property | Type | Description | |
---|---|---|---|
DXT1AlphaThreshold | double |
Method | Description | |
---|---|---|
CheckSize_DXT ( int width, int height ) : bool |
Determines whether an image size is suitable for DXT compression. Must be a power of 2 (technically just divisible by 4, but I'm lazy)
|
|
EnsureMipInImage ( long streamLength, int mainWidth, int mainHeight, int desiredMipDimension, ImageEngineFormat format, int &mipOffset ) : bool |
Checks image file size to ensure requested mipmap is present in image. Header mip count can be incorrect or missing. Use this method to validate the mip you're after.
|
|
EstimateNumMipMaps ( int Width, int Height ) : int |
Estimates number of MipMaps for a given width and height EXCLUDING the top one. i.e. If output is 10, there are 11 mipmaps total.
|
Method | Description | |
---|---|---|
BuildMipMaps ( List |
Ensures all Mipmaps are generated in MipMaps.
|
|
GetCompressedSizeOfImage ( int mipCount, ImageEngineFormat format, int baseWidth, int baseHeight ) : int | ||
GetCompressedSizeUpToIndex ( double mipIndex, ImageEngineFormat format, int baseWidth, int baseHeight ) : int | ||
GetMipOffset ( double mipIndex, ImageEngineFormat format, int baseWidth, int baseHeight ) : int | ||
LoadDDS ( |
||
ReadCompressedMipMap ( |
||
ReadUncompressedMipMap ( |
||
Save ( List |
||
WriteCompressedMipMap ( byte destination, int mipOffset, MipMap mipmap, int blockSize, Action |
||
WriteUncompressedMipMap ( byte destination, int mipOffset, MipMap mipmap, ImageEngineFormat saveFormat, |
public static CheckSize_DXT ( int width, int height ) : bool | ||
width | int | Width of image. |
height | int | Height of image. |
return | bool |
public static EnsureMipInImage ( long streamLength, int mainWidth, int mainHeight, int desiredMipDimension, ImageEngineFormat format, int &mipOffset ) : bool | ||
streamLength | long | Image file stream length. |
mainWidth | int | Width of image. |
mainHeight | int | Height of image. |
desiredMipDimension | int | Max dimension of desired mip. |
format | ImageEngineFormat | Format of image. |
mipOffset | int | Offset of desired mipmap in image. |
return | bool |
public static EstimateNumMipMaps ( int Width, int Height ) : int | ||
Width | int | Image Width. |
Height | int | Image Height. |
return | int |