Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FImageUtils
Description
Save an image. Extension of Filename will be used for output image file format. FImageView can be made from any surface pointer.
If Filename has no extension, an appropriate one is automatically generated based on image format.
| Name | SaveImageByExtension |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static bool SaveImageByExtension
(
const TCHAR * Filename,
const FImageView & InImage,
int32 Quality
)
Parameters
| Name | Remarks |
|---|---|
| Filename | File name to save to, with extension to identify format |
| InImage | Image to save |
| Quality | Mainly for JPEG, but special values have some meaning for other formats |