Texture2DFactoryFromMemory 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.2.419.0 (24.2.419.0)
Syntax public Texture2D FromMemory(
byte[] value,
RasterAttributes attributes
)
Public Function FromMemory (
value As Byte(),
attributes As RasterAttributes
) As Texture2D
public:
Texture2D^ FromMemory(
array<unsigned char>^ value,
RasterAttributes^ attributes
)
member FromMemory :
value : byte[] *
attributes : RasterAttributes -> Texture2D
Parameters
- value
- Type: SystemByte
The byte array that contains the texture data. - attributes
- Type: AGI.Foundation.Graphics.ImagingRasterAttributes
The RasterAttributes that define the texture.
Return Value
Type:
Texture2DThe
Texture2D that was created.
See Also