Texture2D.SaveAsPng Method
Saves texture data as a .png.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
Syntax
public void SaveAsPng (
Stream stream,
int width,
int height
)
Parameters
- stream
Data stream number. - width
Image width. - height
Image height.
See Also
Reference
Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7