Поделиться через


BitmapData class

Applies to: desktop apps only

The BitmapData class is used by the Bitmap::LockBits and Bitmap::UnlockBits methods of the Bitmap class. A BitmapData object stores attributes of a bitmap.

BitmapData has these types of members:

Data Members

The following table lists the members exposed by the BitmapData object.

Data Members Type Description
Width UINT Number of pixels in one scan line of the bitmap.
Height UINT Number of scan lines in the bitmap.
Stride INT Offset, in bytes, between consecutive scan lines of the bitmap. If the stride is positive, the bitmap is top-down. If the stride is negative, the bitmap is bottom-up.
PixelFormat PixelFormat Integer that specifies the pixel format of the bitmap.
Scan0 void * Pointer to the first (index 0) scan line of the bitmap.
Reserved UINT_PTR Reserved for future use.

 

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusimaging.h (include Gdiplus.h)

Library

Gdiplus.lib

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012