Enum StretchMode

Enum StretchMode

Namespace: Aspose.Imaging.FileFormats.Wmf.Consts
Assembly: Aspose.Imaging.dll (25.2.0)

The Aspose.Imaging.FileFormats.Wmf.Consts.StretchMode Enumeration specifies the bitmap stretching mode, which defines how the system combines rows or columns of a bitmap with existing pixels.

public enum StretchMode

Fields

BlackOnWhite = 1

Performs a Boolean AND operation by using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves black pixels at the expense of white pixels

ColorOnColor = 3

Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information.

HalfTone = 4

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.

WhiteOnBlack = 2

Performs a Boolean OR operation by using the color values for the eliminated and existing pixels. If the bitmap is a monochrome bitmap, this mode preserves white pixels at the expense of black pixels