Enum StretchMode
Namespace: Aspose.Imaging.FileFormats.Wmf.Consts
Assembly: Aspose.Imaging.dll (25.7.0)
The Aspose.Imaging.FileFormats.Wmf.Consts.StretchMode Enumeration specifies the bitmapstretching mode, which defines how the system combines rows or columnsof a bitmap with existing pixels.
public enum StretchMode
{
None,
Uniform,
UniformToFill,
Fill,
Stretch,
StretchUniform,
StretchFill
}
Fields
BlackOnWhite = 1
Performs a Boolean AND operation by using the color values for theeliminated and existing pixels. If the bitmap is a monochromebitmap, this mode preserves black pixels at the expense of whitepixels
ColorOnColor = 3
Deletes the pixels. This mode deletes all eliminated lines of pixelswithout trying to preserve their information.
HalfTone = 4
Maps pixels from the source rectangle into blocks of pixels in thedestination rectangle. The average color over the destination blockof pixels approximates the color of the source pixels.
WhiteOnBlack = 2
Performs a Boolean OR operation by using the color values for theeliminated and existing pixels. If the bitmap is a monochromebitmap, this mode preserves white pixels at the expense of blackpixels