Click or drag to resize

ImageTextureCreateFromImage Method

Initializes the texture by allocating and setting the data from an Image with flags from TextureFlagsEnum. An sRGB to linear color space conversion can take place, according to ImageFormat.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void CreateFromImage(
	Image image,
	uint flags = 7
)

Parameters

image
Type: GodotImage

[Missing <param name="image"/> documentation for "M:Godot.ImageTexture.CreateFromImage(Godot.Image,System.UInt32)"]

flags (Optional)
Type: SystemUInt32

[Missing <param name="flags"/> documentation for "M:Godot.ImageTexture.CreateFromImage(Godot.Image,System.UInt32)"]

See Also