ImageUtilitySave(String, IntPtr, Vector2I, Int32, PixelFormat, Int32, Int32, Int32, String) Method |
Save the image as a file.
Namespace: NeoAxisAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static bool Save(
string realFileName,
IntPtr data,
Vector2I size,
int depth,
PixelFormat format,
int numFaces,
int numMipmaps,
int jpegCompressionLevel,
out string error
)
Parameters
- realFileName String
- The real file name.
- data IntPtr
- 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
Booleantrue if image is currently serialized; otherwise,
false.
See Also