Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:drawpictureframeindib

DrawPictureFrameInDIB(
     LPBITMAPINFO:pbmi,
     LPVOID:pBits,
     LPRECT:prc,
     int:iFrameSize,
     int:iShadowSize
)
→ 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.

Return value

Returns TRUE on success or FALSE on failure.

Description

The DrawPictureFrameInDIB function is used to draw a shadowed picture frame around an image. Use this in your viewer plugin to match the appearance of the internal Opus image viewer.

This function can only draw into a 24- or 32-bit DIB (device-independent bitmap.)