uFlags

Flag that specifies the type of resizing to perform and which objects to preserve. You can use a bit wise OR (|) to specify one flag from each group.

The following are the flags that indicate the type of resizing to perform:

Value

Meaning

RGS_SIZE_NORMAL

[$0001] Resize normally.

RGS_SIZE_RESAMPLE

[$0002] Use linear interpolation and averaging to produce a higher-quality image.

RGS_SIZE_BICUBIC

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

The following are the flags that indicate which objects to preserve:

RGS_SIZE_FAVORBLACK

[$0010] (Document/Medical only) Preserve black objects when making the image smaller. This option affects only 1-bit, black-and-white images, where it prevents the disappearance of thin lines. You can use a bitwise OR ( + ) to combine this flag with another one. For example, RGS_SIZE_RESAMPLE + RGS_SIZE_FAVORBLACK causes color images to be resampled, but applies the favor-black option to 1-bit, black-and-white images.

RGS_SIZE_FAVORWHITE

[$0020] (Document/Medical only) Preserve white objects when making the image smaller. This option affects only 1-bit, black-and-white images, where it prevents the disappearance of thin lines. You can use a bitwise OR ( + ) to combine this flag with another one. For example, RGS_SIZE_RESAMPLE + RGS_SIZE_FAVORWHITE causes color images to be resampled, but applies the favor-white option to 1-bit, black-and-white images.