Uloží texturu do souboru.
Jmenný prostor:
SGP.XSpaceKnihovna: 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ýjimka | Podmínka |
---|---|
System..::.ArgumentNullException | texture je nullNothingnullptrnulová reference (Nothing v Visual Basic). |
System..::.ArgumentNullException | fileName je nullNothingnullptrnulová reference (Nothing v Visual Basic). |