Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ImageFormatLoader
继承: RefCounted < Object
派生: ImageFormatLoaderExtension
用于添加特定图像格式支持的基类。
描述
该引擎支持多种开箱即用的图像格式(PNG、SVG、JPEG、WebP 等),但也可以选择通过扩展 ImageFormatLoaderExtension,来实现对其他图像格式的支持。
枚举
flags LoaderFlags: 🔗
LoaderFlags FLAG_NONE = 0
Default loading behavior. No processing is applied to the image.
LoaderFlags FLAG_FORCE_LINEAR = 1
If set, the image is converted from sRGB to linear encoding.
LoaderFlags FLAG_CONVERT_COLORS = 2
If set, a predefined color map is applied to the image. Used when ResourceImporterTexture.editor/convert_colors_with_editor_theme is true.