uFlags

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

Value

Meaning

PUZZLE_BORDER

[$0001] Draw borders around the puzzle blocks. Use the crBorder 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

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

PUZZLE_SIZE

[$0010] Apply the puzzle effect using the uXBlock and uYBlock parameters as the width and height of each block, in pixels.

PUZZLE_COUNT

[$0020] Apply the puzzle effect using the uXBlock and uYBlock parameters as the number of blocks per row and per column.

BITMAP_RESIZE

[$0100] 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.