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
預設的載入行為。不會對影像進行任何處理。
LoaderFlags FLAG_FORCE_LINEAR = 1
如果勾選(或啟用),影像將從 sRGB 色彩空間轉換為線性(Linear)編碼。
LoaderFlags FLAG_CONVERT_COLORS = 2
如果勾選(或啟用),將為影像應用一個預定義的顏色映射(color map)。當 ResourceImporterTexture.editor/convert_colors_with_editor_theme 為 true 時使用。