Click or drag to resize

ImageBlitRectMask Method

Blits src_rect area from src image to this image at the coordinates given by dst. src pixel is copied onto dst 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 BlitRectMask(
	Image src,
	Image mask,
	Rect2 srcRect,
	Vector2 dst
)

Parameters

src
Type: GodotImage

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

mask
Type: GodotImage

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

srcRect
Type: GodotRect2

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

dst
Type: GodotVector2

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

See Also