共用方式為


DxtBitmapContent.SetPixelData Method

Note

This method is available only when developing for Windows.

Sets the contents of the bitmap using an 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
    Contents to be copied to destination bitmap.

Requirements

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

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

See Also

Reference

DxtBitmapContent Class
DxtBitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP