Click or drag to resize

BitMapCreateFromImageAlpha Method

Creates a bitmap that matches the given image dimensions, every element of the bitmap is set to false if the alpha value of the image at that position is equal to threshold or less, and true in other case.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void CreateFromImageAlpha(
	Image image,
	float threshold = 0.1f
)

Parameters

image
Type: GodotImage

[Missing <param name="image"/> documentation for "M:Godot.BitMap.CreateFromImageAlpha(Godot.Image,System.Single)"]

threshold (Optional)
Type: SystemSingle

[Missing <param name="threshold"/> documentation for "M:Godot.BitMap.CreateFromImageAlpha(Godot.Image,System.Single)"]

See Also