summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2020-12-19 09:34:41 +0100
committerGitHub <noreply@github.com>2020-12-19 09:34:41 +0100
commit16524d4ae1d2dc8643b97349dbbba603de77fc2b (patch)
tree3eba00e73e5f9567089e741cbbb398470dc5ed60 /doc/classes
parent33ad8c50484a2caf239f10ac6216a48ca378912c (diff)
parent46ea6750b422292e3f7bf15b5bb12aa4de68dbea (diff)
Merge pull request #44445 from theogen-ratkin/master
Add interpolation parameter to resize_to_po2()
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Image.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index 71db1e5106..414249f110 100644
--- a/doc/classes/Image.xml
+++ b/doc/classes/Image.xml
@@ -422,7 +422,7 @@
<argument index="2" name="interpolation" type="int" enum="Image.Interpolation" default="1">
</argument>
<description>
- Resizes the image to the given [code]width[/code] and [code]height[/code]. New pixels are calculated using [code]interpolation[/code]. See [code]interpolation[/code] constants.
+ Resizes the image to the given [code]width[/code] and [code]height[/code]. New pixels are calculated using the [code]interpolation[/code] mode defined via [enum Interpolation] constants.
</description>
</method>
<method name="resize_to_po2">
@@ -430,8 +430,10 @@
</return>
<argument index="0" name="square" type="bool" default="false">
</argument>
+ <argument index="1" name="interpolation" type="int" enum="Image.Interpolation" default="1">
+ </argument>
<description>
- Resizes the image to the nearest power of 2 for the width and height. If [code]square[/code] is [code]true[/code] then set width and height to be the same.
+ Resizes the image to the nearest power of 2 for the width and height. If [code]square[/code] is [code]true[/code] then set width and height to be the same. New pixels are calculated using the [code]interpolation[/code] mode defined via [enum Interpolation] constants.
</description>
</method>
<method name="rgbe_to_srgb">