Click or drag to resize

ImageBlendRectMask Method

Alpha-blends src_rect from src image to this image using mask image at coordinates dst. Alpha channels are required for both src and mask. dst 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.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void BlendRectMask(
	Image src,
	Image mask,
	Rect2 srcRect,
	Vector2 dst
)

Parameters

src
Type: GodotImage

[Missing <param name="src"/> documentation for "M:Godot.Image.BlendRectMask(Godot.Image,Godot.Image,Godot.Rect2,Godot.Vector2)"]

mask
Type: GodotImage

[Missing <param name="mask"/> documentation for "M:Godot.Image.BlendRectMask(Godot.Image,Godot.Image,Godot.Rect2,Godot.Vector2)"]

srcRect
Type: GodotRect2

[Missing <param name="srcRect"/> documentation for "M:Godot.Image.BlendRectMask(Godot.Image,Godot.Image,Godot.Rect2,Godot.Vector2)"]

dst
Type: GodotVector2

[Missing <param name="dst"/> documentation for "M:Godot.Image.BlendRectMask(Godot.Image,Godot.Image,Godot.Rect2,Godot.Vector2)"]

See Also