Saves texture to the file.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static void SaveTexture(
	Texture texture,
	string fileName,
	ImageFileFormat format,
	bool copy
)

Parameters

texture
Type: Texture
The Texture texture to be saved.
fileName
Type: System..::.String
Target file where the texture will be saved.
format
Type: ImageFileFormat
The texture ImageFileFormat format.
copy
Type: System..::.Boolean
Save the texture copies.

Exceptions

ExceptionCondition
System..::.ArgumentNullException texture is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::.ArgumentNullException fileName is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also