BITMAP structure (Windows).pdf
(
166 KB
)
Pobierz
19.11.2017
BITMAP structure (Windows)
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.
BITMAP structure
The BITMAP structure defines the type, width, height, color format, and bit values of a bitmap.
Syntax
C++
typedef struct
tagBITMAP {
LONG
bmType;
LONG
bmWidth;
LONG
bmHeight;
LONG
bmWidthBytes;
WORD
bmPlanes;
WORD
bmBitsPixel;
LPVOID bmBits;
} BITMAP, *PBITMAP;
Members
bmType
The bitmap type. This member must be zero.
bmWidth
The width, in pixels, of the bitmap. The width must be greater than zero.
bmHeight
The height, in pixels, of the bitmap. The height must be greater than zero.
bmWidthBytes
The number of bytes in each scan line. This value must be divisible by 2, because the system assumes that the
bit values of a bitmap form an array that is word aligned.
bmPlanes
The count of color planes.
bmBitsPixel
The number of bits required to indicate the color of a pixel.
bmBits
A pointer to the location of the bit values for the bitmap. The bmBits member must be a pointer to an array
of character (1-byte) values.
https://msdn.microsoft.com/pl-pl/library/windows/desktop/dd183371(v=vs.85).aspx
1/3
19.11.2017
BITMAP structure (Windows)
Remarks
The bitmap formats currently used are monochrome and color. The monochrome bitmap uses a one-bit, one-plane
format. Each scan is a multiple of 16 bits.
Scans are organized as follows for a monochrome bitmap of height
n:
Scan
Scan
.
.
.
Scan
Scan
0
1
n-2
n-1
The pixels on a monochrome device are either black or white. If the corresponding bit in the bitmap is 1, the pixel is
set to the foreground color; if the corresponding bit in the bitmap is zero, the pixel is set to the background color.
All devices that have the RC_BITBLT device capability support bitmaps. For more information, see
GetDeviceCaps.
Each device has a unique color format. To transfer a bitmap from one device to another, use the
GetDIBits
and
SetDIBits
functions.
Requirements
Minimum supported client
Minimum supported server
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Header
Wingdi.h (include Windows.h)
See also
Bitmaps Overview
Bitmap Structures
CreateBitmapIndirect
GetDeviceCaps
GetDIBits
GetObject
SetDIBits
© 2017 Microsoft
https://msdn.microsoft.com/pl-pl/library/windows/desktop/dd183371(v=vs.85).aspx
2/3
19.11.2017
BITMAP structure (Windows)
https://msdn.microsoft.com/pl-pl/library/windows/desktop/dd183371(v=vs.85).aspx
3/3
Plik z chomika:
jacekplacekjacek
Inne pliki z tego folderu:
professional-c-4-0-and-net-4.pdf
(44260 KB)
addison-wesley-windows-system-programming-4ed-mtshart2010.pdf
(10460 KB)
Visual C++ and MFC Programming 2nd.pdf
(9754 KB)
chand_colorfigs.pdf
(5736 KB)
Introduction to C++ Programming and Graphics.pdf
(3705 KB)
Inne foldery tego chomika:
Arduino
Asembler
C++
DirectX
GDB
Zgłoś jeśli
naruszono regulamin