lFlags

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

Value

Meaning

PUZZLE_BORDER

[0x0001] Draw borders around the puzzle blocks. Use the crColor parameter to pass the border color. 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.

PUZZLE_SHUFFLE

[0x0002] Shuffle the blocks around, controlling the randomization process by the lRandomize parameter. If this flag is not set, the blocks will stay in their original position.

PUZZLE_SIZE

[0x0010] Apply the puzzle effect using the the lXBlock and lYBlock parameters as the width and height of each block, in pixels.

PUZZLE_COUNT

[0x0020] Apply the puzzle effect using the the lXBlock and lYBlock parameters as the number of blocks per row and per column.

BITMAP_RESIZE

[0x0100] Resize the image to be sure that all blocks have equal size. If this flag is not set then the remainder of the image (edge blocks) will be manipulated differently than the inner blocks.