Navigation
API > API/Runtime > API/Runtime/TextureUtilitiesCommon
When should RGB colors be spread into neighboring fully transparent white pixels, replacing their RGB. By default, this is done OnlyOnBinaryTransparency, not on PNG's with non-binary-transparency alpha channels. The PNG format has two different ways of storing alpha, either as 1-bit binary transparency, or as full 8/16 bit alpha channels.
Used to be set from the TextureImporter/FillPNGZeroAlpha config value. Setting this option will supersede that.
| Name | ETextureImportPNGInfill |
| Type | enum |
| Header File | /Engine/Source/Runtime/TextureUtilitiesCommon/Public/TextureImportSettings.h |
| Include Path | #include "TextureImportSettings.h" |
Syntax
enum ETextureImportPNGInfill
{
Default = 0,
Never,
OnlyOnBinaryTransparency,
Always,
}
Values
| Name | Remarks |
|---|---|
| Default | Use the default behavior. |
| Never | Never infill RGB, import the PNG exactly as it is stored in the file. |
| OnlyOnBinaryTransparency | Only infill RGB on binary transparency; this is the default behavior. |
| Always | Always infill RGB to fully transparent white pixels, even for non-binary alpha channels. |