L_BM_AVERAGE
Send this message to average filter an L_BITMAPCLASS window's bitmap.
This changes the color of each pixel in a bitmap to the average color of pixels in its neighborhood. This results in a blur effect. You control the amount of blur by specifying the size of the neighborhood that is used for averaging.
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 |
The low order of the lParam parameter should specify the dimensions of the neighborhood used to calculate the effect. The value is the length, in pixels, of one side of a square. |
Returns
SUCCESS |
Function was successful. |
< 0 |
An error occurred. Refer to Return Codes. |