Texture2D.SaveAsPng Method
Saves texture data as a .png.
Syntax
'Declaration
Public Sub SaveAsPng ( _
stream As Stream, _
width As Integer, _
height As Integer _
)
public void SaveAsPng (
Stream stream,
int width,
int height
)
public:
void SaveAsPng(
Stream stream,
int width,
int height
)
Parameters
- stream
Type: Stream
Data stream number. - width
Type: Int32
Image width. - height
Type: Int32
Image height.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone