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.