Enum HwmfMisc.WmfSetStretchBltMode.StretchBltMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLACKONWHITE
      Performs a Boolean AND operation by using the color values for the eliminated and existing pixels.
      COLORONCOLOR
      Deletes the pixels.
      HALFTONE
      Maps pixels from the source rectangle into blocks of pixels in the destination rectangle.
      WHITEONBLACK
      Performs a Boolean OR operation by using the color values for the eliminated and existing pixels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int flag  
    • Enum Constant Detail

      • 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 Detail

      • flag

        public final int flag
    • Method Detail

      • values

        public static HwmfMisc.WmfSetStretchBltMode.StretchBltMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HwmfMisc.WmfSetStretchBltMode.StretchBltMode c : HwmfMisc.WmfSetStretchBltMode.StretchBltMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HwmfMisc.WmfSetStretchBltMode.StretchBltMode valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null