mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (c64afeb)
This commit is contained in:
@@ -153,10 +153,10 @@ Methods
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Image<class_Image>` | :ref:`rgbe_to_srgb<class_Image_method_rgbe_to_srgb>` **(** **)** |
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`rotate_180<class_Image_method_rotate_180>` **(** **)** |
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`rotate_90<class_Image_method_rotate_90>` **(** :ref:`ClockDirection<enum_@GlobalScope_ClockDirection>` direction **)** |
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`rotate_180<class_Image_method_rotate_180>` **(** **)** |
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`save_exr<class_Image_method_save_exr>` **(** :ref:`String<class_String>` path, :ref:`bool<class_bool>` grayscale=false **)** |const| |
|
||||
+-----------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`save_exr_to_buffer<class_Image_method_save_exr_to_buffer>` **(** :ref:`bool<class_bool>` grayscale=false **)** |const| |
|
||||
@@ -671,6 +671,22 @@ Use ETC2 compression.
|
||||
|
||||
Use BPTC compression.
|
||||
|
||||
.. _class_Image_constant_COMPRESS_ASTC:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`CompressMode<enum_Image_CompressMode>` **COMPRESS_ASTC** = ``4``
|
||||
|
||||
Use ASTC compression.
|
||||
|
||||
.. _class_Image_constant_COMPRESS_MAX:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`CompressMode<enum_Image_CompressMode>` **COMPRESS_MAX** = ``5``
|
||||
|
||||
Represents the size of the :ref:`CompressMode<enum_Image_CompressMode>` enum.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -934,7 +950,7 @@ Removes the image's mipmaps.
|
||||
|
||||
Compresses the image to use less memory. Can not directly access pixel data while the image is compressed. Returns error if the chosen compression mode is not available.
|
||||
|
||||
The ``mode`` parameter helps to pick the best compression method for DXT and ETC2 formats. It is ignored for ASTC compression.
|
||||
The ``source`` parameter helps to pick the best compression method for DXT and ETC2 formats. It is ignored for ASTC compression.
|
||||
|
||||
For ASTC compression, the ``astc_format`` parameter must be supplied.
|
||||
|
||||
@@ -1466,18 +1482,6 @@ Converts a standard RGBE (Red Green Blue Exponent) image to an sRGB image.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Image_method_rotate_180:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **rotate_180** **(** **)**
|
||||
|
||||
Rotates the image by ``180`` degrees. The width and height of the image must be greater than ``1``.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_Image_method_rotate_90:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
@@ -1490,6 +1494,18 @@ Rotates the image in the specified ``direction`` by ``90`` degrees. The width an
|
||||
|
||||
----
|
||||
|
||||
.. _class_Image_method_rotate_180:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **rotate_180** **(** **)**
|
||||
|
||||
Rotates the image by ``180`` degrees. The width and height of the image must be greater than ``1``.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_Image_method_save_exr:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
Reference in New Issue
Block a user