Click or drag to resize

Texture2DFactory.FromMemory Method (Byte[], RasterAttributes)

Creates a new texture from memory.

Namespace:  AGI.Foundation.Graphics.Advanced
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public Texture2D FromMemory(
	byte[] value,
	RasterAttributes attributes
)

Parameters

value
Type:System.Byte[]
The byte array that contains the texture data.
attributes
Type: AGI.Foundation.Graphics.Imaging.RasterAttributes
The RasterAttributes that define the texture.

Return Value

Type: Texture2D
The Texture2D that was created.
See Also