Navigation
API > API/Developer > API/Developer/TextureFormat > API/Developer/TextureFormat/Interfaces > API/Developer/TextureFormat/Interfaces/ITextureFormat
References
| Module | TextureFormat |
| Header | /Engine/Source/Developer/TextureFormat/Public/Interfaces/ITextureFormat.h |
| Include | #include "Interfaces/ITextureFormat.h" |
bool CompressImage
&40;
const FImage & Image,
const FTextureBuildSettings & BuildSettings,
const FIntVector3 & InMip0Dimensions,
int32 InMip0NumSlicesNoDepth,
int32 InMipIndex,
int32 InMipCount,
FStringView DebugTexturePathName,
bool bImageHasAlphaChannel,
struct FCompressedImage2D & OutCompressedImage
&41; const
Remarks
Compresses a single image. true on success, false otherwise.
Parameters
| Name | Description |
|---|---|
| Image | The input image. Image.RawData may be freed or modified by CompressImage; do not use after calling this. |
| BuildSettings | Build settings. |
| InMip0Dimensions | X/Y = Width/Height; Z = 1 unless volume texture, then its depth |
| InMip0NumSlicesNoDepth | see FEncodedTextureDescription::NumSlices_NoDepth() |
| InMipIndex | Mip index of current image in the overall texture. |
| InMipCount | Total mips this texture will be created with. |
| DebugTexturePathName | The path name of the texture we are building, for debug logging/filtering/dumping. |
| bImageHasAlphaChannel | true if the image has a non-white alpha channel. |
| OutCompressedMip | The compressed image. |