summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-12 09:28:12 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-12 09:28:12 -0600
commit686b1c4d98741a3693feddd23ad8d2c3c6d8fe9b (patch)
tree671178f6604fe7888634d98db15743e0cde8c01b
parent0445bfb01c55b46a44c486ac31066514ba23a433 (diff)
parentea2ea58a28fefe9514b076fa96310cbe5d70a48f (diff)
downloadredot-engine-686b1c4d98741a3693feddd23ad8d2c3c6d8fe9b.tar.gz
Merge pull request #94326 from davidrautert/blit-rect-alpha-notes
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">