Package org.apache.poi.hwmf.record
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPerforms a Boolean AND operation by using the color values for the eliminated and existing pixels.Deletes the pixels.Maps pixels from the source rectangle into blocks of pixels in the destination rectangle.Performs a Boolean OR operation by using the color values for the eliminated and existing pixels. -
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
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
Deletes the pixels. This mode deletes all eliminated lines of pixels without trying to preserve their information. EMF name: STRETCH_DELETESCANS -
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 nameNullPointerException- if the argument is null
-
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:
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 nameNullPointerException- if the argument is null
-