uFlags

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

Value

Meaning

DICE_BORDER

[$0001] Draw borders around the dice blocks. The border color is given by crBorder. 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

[$0010] uXBlock and uYBlock contain the width and height of each block, in pixels.

DICE_COUNT

[$0020] uXBlock and uYBlock contain the number of blocks per row and per column.

BITMAP_RESIZE

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