lFlags

Flags that identify how to distribute the canvas image with respect to the image and how to handle resizing.

The following flags identify how the distribute the canvas image with respect to the image:

Value

Meaning

CANVAS_FIT

[0x0000] Fit the canvas image so it has the same dimensions as the bitmap that is being applied to the canvas, without tiling.

CANVAS_SHIFT

[0x0010] Shift the canvas image by the amount specified in lTilesOffset.

The following flags identify which resizing method to use to resize the canvas image in order to fit the original image:

Value

Meaning

SIZE_NORMAL

[0x0000] Resize normally.

SIZE_RESAMPLE

[0x0002] Use linear interpolation and averaging to produce a higher quality image.

SIZE_BICUBIC

[0x0004] Use bicubic interpolation and averaging to produce a higher quality image. This is slower than SIZE_RESAMPLE.