Export (0) Print
Expand All
Expand Minimize
2 out of 2 rated this helpful - Rate this topic

SetBitmapBits (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function sets the bits of color data for a bitmap to the specified values.

LONG SetBitmapBits(
  HBITMAP hbmp,
  DWORD cBytes,
  CONST VOID *lpBits
);

Parameters

hbmp
[in] Handle to the bitmap to be set.

This must be a compatible bitmap.

cBytes
[in] Specifies the number of bytes pointed to by the lpBits parameter.
lpBits
[in] Pointer to an array of bytes that contain color data for the specified bitmap.

Return Values

If successful, the function returns the number of bytes used in setting the bitmap bits.

If the function fails, it returns zero.

To get extended error information, call GetLastError.

Remarks

The array identified by lpBits must be word aligned.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

Creating Bitmaps | GDI Functions


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.