Uloží texturu do souboru.

Jmenný prostor:  SGP.XSpace
Knihovna:  SGPRTL (v SGPRTL)
Verze: dll

Syntaxe

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

Parametry

texture
Typ: Texture
Textura Texture pro uložení.
fileName
Typ: System..::.String
Cílový soubor, kam bude textura uložena.
format
Typ: ImageFileFormat
Formát textury ImageFileFormat.
copy
Typ: System..::.Boolean
Uložení kopii textury.

Výjimky

VýjimkaPodmínka
System..::.ArgumentNullExceptiontexture je nullNothingnullptrnulová reference (Nothing v Visual Basic).
System..::.ArgumentNullExceptionfileName je nullNothingnullptrnulová reference (Nothing v Visual Basic).

Podívat se také na