Merge pull request #63005 from Chaosus/image_rotate

Implement `rotate_90/rotate_180` functions to `Image`
This commit is contained in:
Rémi Verschelde 2022-07-19 15:21:16 +02:00 committed by GitHub
commit eea14a0edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 121 additions and 0 deletions

View file

@ -378,6 +378,19 @@
Converts a standard RGBE (Red Green Blue Exponent) image to an sRGB image.
</description>
</method>
<method name="rotate_180">
<return type="void" />
<description>
Rotates the image by [code]180[/code] degrees. The width and height of the image must be greater than [code]1[/code].
</description>
</method>
<method name="rotate_90">
<return type="void" />
<argument index="0" name="direction" type="int" enum="ClockDirection" />
<description>
Rotates the image in the specified [code]direction[/code] by [code]90[/code] degrees. The width and height of the image must be greater than [code]1[/code]. If the width and height are not equal, the image will be resized.
</description>
</method>
<method name="save_exr" qualifiers="const">
<return type="int" enum="Error" />
<argument index="0" name="path" type="String" />