Click or drag to resize

ImageUtilitySave Method (String, Byte, Vector2I, Int32, PixelFormat, Int32, Int32, String)

Save the image as a file.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2023.1.2.0 (2023.1.2.0)
Syntax
C#
public static bool Save(
	string realFileName,
	byte[] data,
	Vector2I size,
	int depth,
	PixelFormat format,
	int numFaces,
	int numMipmaps,
	out string error
)

Parameters

realFileName
Type: SystemString
The real file name.
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: Boolean
true if image is currently serialized; otherwise, false.
See Also