lFlags

Flags that specify how to apply the effect. Possible values are:

Value

Meaning

DICE_BORDER

[0x0001] Draw borders around the dice blocks. The border color is given by crColor. Each block will draw the border on the inside of the edges. The border is 1 pixel wide. In places with adjacent blocks, the border will be 2 pixels wide because each block has a 1-pixel border. If the BITMAP_RESIZE flag is not set and the edge blocks have a different size than the inner blocks, the border will not be drawn for the right and the bottom edges.

DICE_SIZE

[0x0010] lXBlock and lYBlock contain the width and height of each block, in pixels.

DICE_COUNT

[0x0020] lXBlock and lYBlock contain the number of blocks per row and per column.

BITMAP_RESIZE

[0x0100] if this flag is set then the image will be resized to be sure that all blocks have equal size. If this flag is not set then the edge blocks might have a different size than the inner blocks. If the edge blocks have a different size, they will be manipulated differently. See the comments below for more information.