L_BM_ADDNOISE

Send this message to add random pixels to an L_BITMAPCLASS window's bitmap. You can specify the percentage of coverage and the color plane.

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 specifies the channel. Possible values are:

 

Value

Meaning

 

CHANNEL_MASTER

[0] All channels.

 

CHANNEL_RED

[1] Red channel only.

 

CHANNEL_GREEN

[2] Green channel only.

 

CHANNEL_BLUE

[3] Blue channel only.

 

The high order is the percentage of coverage, expressed in tenths of a percent. Valid values are 0 to 1000.

Returns

SUCCESS

Function was successful.

< 0

An error occurred. Refer to Return Codes.