Click or drag to resize

ImageCreate Method

Creates an empty image of given size and format. See ImageFormat constants. If use_mipmaps is true then generate mipmaps for this image. See the GenerateMipmaps(Boolean).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void Create(
	int width,
	int height,
	bool useMipmaps,
	ImageFormat format
)

Parameters

width
Type: SystemInt32

[Missing <param name="width"/> documentation for "M:Godot.Image.Create(System.Int32,System.Int32,System.Boolean,Godot.Image.Format)"]

height
Type: SystemInt32

[Missing <param name="height"/> documentation for "M:Godot.Image.Create(System.Int32,System.Int32,System.Boolean,Godot.Image.Format)"]

useMipmaps
Type: SystemBoolean

[Missing <param name="useMipmaps"/> documentation for "M:Godot.Image.Create(System.Int32,System.Int32,System.Boolean,Godot.Image.Format)"]

format
Type: GodotImageFormat

[Missing <param name="format"/> documentation for "M:Godot.Image.Create(System.Int32,System.Int32,System.Boolean,Godot.Image.Format)"]

See Also