StretchMode Property

Describes how color is rendered in a Bitmap object.

Syntax

object.StretchMode [= enumBitmapStretchMode]

Properties

The StretchMode property syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

enumBitmapStretchMode

An enumeration that describes how the bitmap object is rendered.

Valid Values:

  • BitmapStretchBlackOnWhite (1) – This mode is typically used to preserve foreground pixels in monochrome bitmaps. (This is the default for pictures created prior to iFIX 4.5.)
  • BitmapStretchColorOnColor (2) – This mode is typically used to preserve color in color bitmaps. (This is the default for pictures created in iFIX 4.5 and greater.)
  • BitmapStretchHalfTone (3) – This mode maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels. This mode is slower and requires more processing of the source image than the other modes, but it produces higher quality images.

 

Applies To