Click or drag to resize

IMG_STRETCHMODE Enumeration

Image stretching mode.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public enum IMG_STRETCHMODE
Members
  Member nameValueDescription
STRETCH_DELETE0 Deletes eliminated pixels. Information in the eliminated pixels is not preserved (Default).
STRETCH_OR1 Uses the OR operator to combine eliminated pixels with the remaining ones. This mode preserves black pixels at the expense of white pixels. (Assuming that black is coded as 1.)
STRETCH_AND2 Uses the AND operator to combine eliminated pixels with the remaining ones. This mode preserves white pixels at the expense of black pixels.
STRETCH_AVG3 If the image is B/W, 4-bit grayscale or 8-bit grayscale use 256-level grayscale to combine eliminated pixels. This will result in an output of an 8-bit grayscale bitmap. If the image is palette-color or 24-bit color, use 24-bit color to combine eliminated pixels. This will produce an output of a 24-bit color bitmap. Note, that if the destination rectangle size is greater than the source rectangle size, the color depth of the output bitmap will be the same as the color depth of the input image.
Remarks
Possible values for the image stretching mode setting. This setting is used by the RenderToMemoryByParams method of the Image object if the destination rectangle size is definitely smaller than the source one. The setting specifies how the pixels of the input image will be combined to get the resulting image during the operation of this function.
See Also