summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rautert <davidrautert@gmail.com>2024-07-13 16:11:20 -0400
committerRémi Verschelde <rverschelde@gmail.com>2024-11-11 21:24:14 +0100
commitea2ea58a28fefe9514b076fa96310cbe5d70a48f (patch)
tree2ec2cf357e591fafce3cf64f3990192756fe6a27
parentec6a1c0e792ac8be44990749800a4654a293b9ee (diff)
downloadredot-engine-ea2ea58a28fefe9514b076fa96310cbe5d70a48f.tar.gz
Add note about alpha channels blending to `Image.blit_rect`
-rw-r--r--doc/classes/Image.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index 9b71a8c37f..4421318be7 100644
--- a/doc/classes/Image.xml
+++ b/doc/classes/Image.xml
@@ -48,6 +48,7 @@
<param index="2" name="dst" type="Vector2i" />
<description>
Copies [param src_rect] from [param src] image to this image at coordinates [param dst], clipped accordingly to both image bounds. This image and [param src] image [b]must[/b] have the same format. [param src_rect] with non-positive size is treated as empty.
+ [b]Note:[/b] The alpha channel data in [param src] will overwrite the corresponding data in this image at the target position. To blend alpha channels, use [method blend_rect] instead.
</description>
</method>
<method name="blit_rect_mask">