共用方式為


PixelBitmapContent.SetPixelData Method

Note

This method is available only when developing for Windows.

Sets the bitmap content using the specified encoded byte array.

Syntax

'Declaration
Public Overrides Sub SetPixelData ( _
         sourceData As Byte() _
)
public override void SetPixelData (
         byte[] sourceData
)
public:
void SetPixelData(
         unsigned char sourceData[]
) override

Parameters

  • sourceData
    Type: Byte
    New bitmap content.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

PixelBitmapContent Generic Class
PixelBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP