DrawPictureFrameInDIBEx(
     const BITMAPINFO*:pBMI,
     LPVOID:pBits,
     const RECT*:prc,
     int:iFrameSize,
     int:iShadowSize,
     COLORREF:crFrame,
     COLORREF:crShadow
)
→ BOOL

Arguments

pBMI

[in] A pointer to a BITMAPINFO structure that describes the DIB you wish to draw into.

pBits

[in] Pointer to the bitmap data.

prc

[in] The rectangle in the bitmap around which the frame is to be drawn.

iFrameSize

[in] The thickness of the frame to draw, in pixels. Set to 0 to have no frame.

iShadowSize

[in] The thickness of the shadow to draw, in pixels. Set to 0 to have no shadow.

crFrame

[in] The color of the frame.

crShadow

[in] The color of the shadow.

Return value

Returns TRUE on success or FALSE on failure.

Description

The DrawPictureFrameInDIBEx function is the same as DrawPictureFrameInDIB except that it also lets you specify the colors of the frame and the shadow.