ITextureFormat::GetPixelFormatForImage

Calculate the final/runtime pixel format for this image on this platform

Unreal Engine C++ API Reference > Developer > TextureFormat > Interfaces > ITextureFormat

Deprecated * Use GetEncodedPixelFormat(BuildSettings, bImageHasAlphaChannel) instead

References

   
Module TextureFormat
Header /Engine/Source/Developer/TextureFormat/Public/Interfaces/ITextureFormat.h
Include #include "Interfaces/ITextureFormat.h"
virtual EPixelFormat GetPixelFormatForImage
(
    const [FTextureBuildSettings](API\Developer\TextureCompressor\FTextureBuildSettings) & BuildSettings,
    const struct [FImage](API\Runtime\ImageCore\FImage) & Image,
    bool bImageHasAlphaChannel
) const

Remarks

Calculate the final/runtime pixel format for this image on this platform


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library