L_BM_DESPECKLE

(Document/Medical only) Send this message to remove speckles from an L_BITMAPCLASS window's bitmap. Typically, this function is used to clean up scanned images (such as FAX images).

This function removes 1-pixel speckles, and shrinks some larger speckles. Therefore, in some cases, larger speckles can be completely removed by running it more than once.

Parameter

Meaning

wParam

Specifies whether the window should be redrawn to reflect the image changes. Use 1 to redraw the window, or 0 not to redraw it.

lParam

Reserved. Set to NULL.

Returns

SUCCESS

Function was successful.

< 0

An error occurred. Refer to Return Codes.