소스 검색

Merge pull request #94326 from davidrautert/blit-rect-alpha-notes

Add note about alpha channels blending to `Image.blit_rect`
Thaddeus Crews 8 달 전
부모
커밋
686b1c4d98
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      doc/classes/Image.xml

+ 1 - 0
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">