Click or drag to resize

Texture2DFactoryFromMemory Method (IntPtr, RasterAttributes)

Creates a new texture from memory.

Namespace:  AGI.Foundation.Graphics.Advanced
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public Texture2D FromMemory(
	IntPtr value,
	RasterAttributes attributes
)

Parameters

value
Type: SystemIntPtr
A IntPtr to the memory that contains the raster data.
attributes
Type: AGI.Foundation.Graphics.ImagingRasterAttributes
The RasterAttributes that define the texture.

Return Value

Type: Texture2D
The Texture2D that was created.
See Also