ImageUtilityLoadFromBuffer Method |
Loads an image from buffer.
Namespace:
NeoAxis
Assembly:
NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public static bool LoadFromBuffer(
byte[] sourceBuffer,
string fileType,
out byte[] data,
out Vector2I size,
out int depth,
out PixelFormat format,
out int numFaces,
out int numMipmaps,
out string error
)
Parameters
- sourceBuffer
- Type: SystemByte
The source buffer. - fileType
- Type: SystemString
The file type (file extension). - data
- Type: SystemByte
The image data. - size
- Type: NeoAxisVector2I
The image size. - depth
- Type: SystemInt32
The image depth (in 3d images, numbers of layers, otherwhise 1). - format
- Type: NeoAxisPixelFormat
Pixel format. - numFaces
- Type: SystemInt32
The number of faces the image data has inside (6 for cubemaps, 1 otherwise). - numMipmaps
- Type: SystemInt32
The number of mipmaps the image data has inside. - error
- Type: SystemString
Output error string.
Return Value
Type:
Booleantrue if image is loaded; otherwise,
false.
See Also