ImageUtilityLoadFromBuffer Method |
Loads an image from buffer.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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 Byte
- The source buffer.
- fileType String
- The file type (file extension).
- data Byte
- The image data.
- size Vector2I
- The image size.
- depth Int32
- The image depth (in 3d images, numbers of layers, otherwhise 1).
- format PixelFormat
- Pixel format.
- numFaces Int32
- The number of faces the image data has inside (6 for cubemaps, 1 otherwise).
- numMipmaps Int32
- The number of mipmaps the image data has inside.
- error String
- Output error string.
Return Value
Booleantrue if image is loaded; otherwise,
false.
See Also