The BitmapData structure is used by the GdipBitmapLockBits and GdipBitmapUnlockBits functions. A BitmapData structure stores attributes of a bitmap.
C++ Syntax
typedef struct BitmapData {
UINT width;
UINT height;
INT Stride;
PixelFormat PixelFormat;
void *Scan0;
UINT_PTR Reserved;
}
FreeBASIC 语法
TYPE BitmapData
Width AS UINT
Height AS UINT
Stride AS INT_
PixelFormat AS PixelFormat
Scan0 AS ANY PTR
Reserved AS UINT_PTR
END TYPE
成员
Width
Number of pixels in one scan line of the bitmap.
Height
Number of scan lines in the bitmap.
Stride
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
Integer that specifies the pixel format of the bitmap.
Scan0
Pointer to the first (index 0) scan line of the bitmap.
Reserved
Reserved for future use.