Files
godot-docs/classes/class_imageformatloader.rst
2022-10-08 13:57:16 +02:00

49 lines
1.9 KiB
ReStructuredText

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ImageFormatLoader.xml.
.. _class_ImageFormatLoader:
ImageFormatLoader
=================
**Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
**Inherited By:** :ref:`ImageFormatLoaderExtension<class_ImageFormatLoaderExtension>`
Base class to add support for specific image formats.
Description
-----------
The engine supports multiple image formats out of the box (PNG, SVG, JPEG, WebP to name a few), but you can choose to implement support for additional image formats by extending :ref:`ImageFormatLoaderExtension<class_ImageFormatLoaderExtension>`.
Enumerations
------------
.. _enum_ImageFormatLoader_LoaderFlags:
.. _class_ImageFormatLoader_constant_FLAG_NONE:
.. _class_ImageFormatLoader_constant_FLAG_FORCE_LINEAR:
.. _class_ImageFormatLoader_constant_FLAG_CONVERT_COLORS:
flags **LoaderFlags**:
- **FLAG_NONE** = **0**
- **FLAG_FORCE_LINEAR** = **1**
- **FLAG_CONVERT_COLORS** = **2**
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
.. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`