|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| No
| Platform Notes
| Windows 95: int == 16 bits
|
|
|
SetBitmapBits
The SetBitmapBits function sets the bits of color data for a bitmap to the specified values.
The SetBitmapBits function is included only for compatibility with earlier versions of Windows.
For Win32-based applications, use the SetDIBits function.
LONG SetBitmapBits(
HBITMAP hbmp,
| // handle of bitmap
| DWORD cBytes,
| // number of bytes in bitmap array
| CONST VOID * lpBits
| // address of array with bitmap bits
| );
|
|
Parameters
hbmp
Identifies the bitmap to be set.
cBytes
Specifies the number of bytes pointed to by the lpBits parameter.
lpBits
Points to an array of bytes that contain color data for the specified bitmap.
Return Values
If the function succeeds, the return value is the number of bytes used in
setting the bitmap bits.
If the function fails, the return value is zero.
Remarks
The array identified by lpBits must be WORD aligned.
See Also
GetBitmapBits, SetDIBits
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|