Click or drag to resize

ImageCreateFromData Method

Creates a new image of given size and format. See ImageFormat constants. Fills the image with the given raw data. If use_mipmaps is true then loads mipmaps for this image from data. See GenerateMipmaps(Boolean).

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

Parameters

width
Type: SystemInt32

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

height
Type: SystemInt32

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

useMipmaps
Type: SystemBoolean

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

format
Type: GodotImageFormat

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

data
Type: SystemByte

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

See Also