Navigation
API > API/Runtime > API/Runtime/ImageCore
References
| Module | ImageCore |
| Header | /Engine/Source/Runtime/ImageCore/Public/ImageCoreUtils.h |
| Include | #include "ImageCoreUtils.h" |
| Source | /Engine/Source/Runtime/ImageCore/Private/ImageCoreUtils.cpp |
namespace FImageCoreUtils
{
EPixelFormat FImageCoreUtils&58;&58;GetPixelFormatForRawImageFormat
&40;
ERawImageFormat::Type InFormat,
ERawImageFormat::Type &42; pOutEquivalentFormat
&41;
}
Remarks
EPixelFormat is the graphics texture pixel format it is a much larger superset of ERawImageFormat GetPixelFormatForRawImageFormat does not map to the very closest EPixelFormat instead map to a close one that is actually usable as Texture if *pOutEquivalentFormat != InFormat , then conversion is needed and conversion can be done using CopyImage to OutEquivalentFormat