![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ImageCore.h>
Classes | |
| struct | FMipInfo |
Public Member Functions | |
| IMAGECORE_API void | Init (ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace) |
| IMAGECORE_API void | Init (int32 MipZeroWidth, int32 MipZeroHeight, int32 NumMips, ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace) |
| IMAGECORE_API void | CopyTo (FMipMapImage &DestImage, ERawImageFormat::Type DestFormat, EGammaSpace DestGammaSpace) |
| void | CopyTo (FMipMapImage &DestImage) |
| IMAGECORE_API void | ChangeFormat (ERawImageFormat::Type DestFormat, EGammaSpace DestGammaSpace) |
| bool | IsValid () const |
| bool | GetMipDimensions (int32 MipLevel, int32 &OutWidth, int32 &OutHeight) const |
| int32 | GetMipCount () const |
| FImageView | GetMipImage (int32 MipLevel) |
| void | AddMipImage (TArray64< uint8 > &&Buffer, int32 Width, int32 Height) |
| int64 | GetNumPixels () |
Public Attributes | |
| TArray64< uint8 > | RawData |
| TArray< FMipInfo > | SubImages |
| ERawImageFormat::Type | Format = ERawImageFormat::BGRA8 |
| EGammaSpace | GammaSpace = EGammaSpace::sRGB |
Structure for raw image data used for Image formats that support Mip Maps.
| void FMipMapImage::ChangeFormat | ( | ERawImageFormat::Type | DestFormat, |
| EGammaSpace | DestGammaSpace | ||
| ) |
In - place format change does nothing if already in the desired format
|
inline |
| void FMipMapImage::CopyTo | ( | FMipMapImage & | DestImage, |
| ERawImageFormat::Type | DestFormat, | ||
| EGammaSpace | DestGammaSpace | ||
| ) |
Copies the image to a destination image with the specified format.
| DestImage | - The destination image. Will be allocated. Any existing contents are replaced. |
| DestFormat | - The destination image format. |
| DestSRGB | - Whether the destination image is in SRGB format. |
|
inline |
|
inline |
|
inline |
|
inline |
| void FMipMapImage::Init | ( | ERawImageFormat::Type | InFormat, |
| EGammaSpace | InGammaSpace | ||
| ) |
Initializes the Mip Map Image with parameters with uninitialized SubImages.
| InFormat | Raw Image Format |
| InGammaSpace | Gamma Space |
| void FMipMapImage::Init | ( | int32 | MipZeroWidth, |
| int32 | MipZeroHeight, | ||
| int32 | NumMips, | ||
| ERawImageFormat::Type | InFormat, | ||
| EGammaSpace | InGammaSpace | ||
| ) |
Initializes the Mip Map Image with reserving space for mip maps.
| InFormat | Raw Image Format |
| InGammaSpace | Gamma Space |
|
inline |
| ERawImageFormat::Type FMipMapImage::Format = ERawImageFormat::BGRA8 |
Format in which the images is stored.
| EGammaSpace FMipMapImage::GammaSpace = EGammaSpace::sRGB |
The gamma space the image is stored in.
Holds information about the sub images some image formats support.