summaryrefslogtreecommitdiff
path: root/doc/base
diff options
context:
space:
mode:
authord <d>2017-06-18 09:38:43 -0700
committerd <d>2017-06-18 11:29:37 -0700
commit053a4fdcd9953215fdd8c46891b5973526fffa3f (patch)
tree3b70f075aeed7422f3ed438ebf2945e8155df418 /doc/base
parent33bf180067eb0beb1a514adcdfb6a59cc5f4ac55 (diff)
Added two new methods to 3.0 'blend_rect_mask' and 'fill'
Diffstat (limited to 'doc/base')
-rw-r--r--doc/base/classes.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 2331d49c1f..fd3d629505 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -18949,6 +18949,30 @@
Native image datatype. Contains image data, which can be converted to a texture, and several functions to interact with it.
</description>
<methods>
+ <method name="blend_rect">
+ <argument index="0" name="src" type="Image">
+ </argument>
+ <argument index="1" name="src_rect" type="Rect2">
+ </argument>
+ <argument index="2" name="dst" type="Vector2">
+ </argument>
+ <description>
+ Alpha-blends a "src_rect" [Rect2] from "src" [Image] to this [Image] on coordinates "dest".
+ </description>
+ </method>
+ <method name="blend_rect_mask">
+ <argument index="0" name="src" type="Image">
+ </argument>
+ <argument index="1" name="mask" type="Image">
+ </argument>
+ <argument index="2" name="src_rect" type="Rect2">
+ </argument>
+ <argument index="3" name="dst" type="Vector2">
+ </argument>
+ <description>
+ Alpha-blends a "src_rect" [Rect2] from "src" [Image] to this [Image] using a "mask" [Image] on coordinates "dest". Alpha channels are required for both "src" and "mask", dest pixels and src pixels will blend if the corresponding mask pixel's alpha value is not 0. "src" [Image] and "mask" [Image] *must* have the same size (width and height) but they can have different formats
+ </description>
+ </method>
<method name="blit_rect">
<argument index="0" name="src" type="Image">
</argument>
@@ -19039,6 +19063,13 @@
<description>
</description>
</method>
+ <method name="fill">
+ <argument index="0" name="color" type="Color">
+ </argument>
+ <description>
+ Fills an [Image] with a specified [Color]
+ </description>
+ </method>
<method name="fix_alpha_edges">
<description>
</description>