Sdílet prostřednictvím


Texture2D.SaveAsJpeg Method

Saves texture data as a .jpg.

Syntax

'Declaration
Public Sub SaveAsJpeg ( _
         stream As Stream, _
         width As Integer, _
         height As Integer _
)
public void SaveAsJpeg (
         Stream stream,
         int width,
         int height
)
public:
void SaveAsJpeg(
         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