Enum HwmfMisc.WmfSetStretchBltMode.StretchBltMode

java.lang.Object
java.lang.Enum<HwmfMisc.WmfSetStretchBltMode.StretchBltMode>
org.apache.poi.hwmf.record.HwmfMisc.WmfSetStretchBltMode.StretchBltMode
All Implemented Interfaces:
Serializable, Comparable<HwmfMisc.WmfSetStretchBltMode.StretchBltMode>, java.lang.constant.Constable
Enclosing class:
HwmfMisc.WmfSetStretchBltMode

public static enum HwmfMisc.WmfSetStretchBltMode.StretchBltMode extends Enum<HwmfMisc.WmfSetStretchBltMode.StretchBltMode>
  • Enum Constant Details

    • BLACKONWHITE

      public static final HwmfMisc.WmfSetStretchBltMode.StretchBltMode BLACKONWHITE
      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. EMF name: STRETCH_ANDSCANS
    • WHITEONBLACK

      public static final HwmfMisc.WmfSetStretchBltMode.StretchBltMode WHITEONBLACK
      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. EMF name: STRETCH_ORSCANS
    • COLORONCOLOR

      public static final HwmfMisc.WmfSetStretchBltMode.StretchBltMode COLORONCOLOR
      Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information. EMF name: STRETCH_DELETESCANS
    • HALFTONE

      public static final HwmfMisc.WmfSetStretchBltMode.StretchBltMode HALFTONE
      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. After setting the HALFTONE stretching mode, the brush origin MUST be set to avoid misalignment artifacts - in EMF this is done via EmfSetBrushOrgEx EMF name: STRETCH_HALFTONE
  • Field Details

    • flag

      public final int flag
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static HwmfMisc.WmfSetStretchBltMode.StretchBltMode valueOf(int flag)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      flag - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null