Click or drag to resize

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

Save the image as a file.

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

Parameters

realFileName  String
The real file name.
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.
jpegCompressionLevel  Int32
JPEG compression level in percents from 0 to 100.
error  String
Output error string.

Return Value

Boolean
true if image is currently serialized; otherwise, false.
See Also