Navigation
API > API/Runtime > API/Runtime/ImageCore
Description
Copy FImageView data, converting pixels if necessary. Sizes must match. Dest must already be allocated. For a function that allocates Dest, use CopyTo().
Because FImage implicitly convers to FImageView, these functions can be used on FImage types as well.
Copies an image accounting for format differences. Sizes must match.
| Name | FImageCore::CopyImage |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageCore/Public/ImageCore.h |
| Include Path | #include "ImageCore.h" |
| Source | /Engine/Source/Runtime/ImageCore/Private/ImageCore.cpp |
namespace FImageCore
{
void FImageCore::CopyImage
(
const FImageView & SrcImage,
const FImageView & DestImage
)
}
Parameters
| Name | Remarks |
|---|---|
| SrcImage | The source image to copy from. |
| DestImage | The destination image to copy to. (the FImageView is const but what it points at is not) |
| SrcImage | The source image to copy from. |
| DestImage | The destination image to copy to. |