EmfLogPenEx

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.objects.EmfObject, com.aspose.imaging.fileformats.emf.emf.objects.EmfBasePen

public final class EmfLogPenEx extends EmfBasePen

The LogPenEx object specifies the style, width, and color of an extended logical pen.

Constructors

ConstructorDescription
EmfLogPenEx()

Methods

MethodDescription
getPenStyle()Gets or sets the pen style
setPenStyle(int value)Gets or sets the pen style
getWidth()Gets or sets a 32-bit unsigned integer that specifies the width of the line drawn by the pen.
setWidth(int value)Gets or sets a 32-bit unsigned integer that specifies the width of the line drawn by the pen.
getBrushStyle()Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from the WMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4).
setBrushStyle(int value)Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from the WMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4).
getArgb32ColorRef()Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8).
setArgb32ColorRef(int value)Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8).
getBrushHatch()Gets or sets the brush hatch pattern.
setBrushHatch(int value)Gets or sets the brush hatch pattern.
getNumStyleEntities()Gets the number of elements in the array specified in the StyleEntry field.
getStyleEntry()Gets or sets an optional array of 32-bit unsigned integers that defines the lengths of dashes and gaps in the line drawn by this pen, when the value of PenStyle is PS_USERSTYLE line style for the pen.
setStyleEntry(int[] value)Gets or sets an optional array of 32-bit unsigned integers that defines the lengths of dashes and gaps in the line drawn by this pen, when the value of PenStyle is PS_USERSTYLE line style for the pen.
getBrushDibPattern()Gets or sets the brush dib pattern.
setBrushDibPattern(WmfDeviceIndependentBitmap value)Gets or sets the brush dib pattern.

EmfLogPenEx()

public EmfLogPenEx()

getPenStyle()

public int getPenStyle()

Gets or sets the pen style

Returns: int

setPenStyle(int value)

public void setPenStyle(int value)

Gets or sets the pen style

Parameters:

ParameterTypeDescription
valueint

getWidth()

public int getWidth()

Gets or sets a 32-bit unsigned integer that specifies the width of the line drawn by the pen. If the pen type in the PenStyle field is PS_GEOMETRIC, this value is the width in logical units; otherwise, the width is specified in device units. If the pen type in the PenStyle field is PS_COSMETIC, this value MUST be 0x00000001.

Returns: int

setWidth(int value)

public void setWidth(int value)

Gets or sets a 32-bit unsigned integer that specifies the width of the line drawn by the pen. If the pen type in the PenStyle field is PS_GEOMETRIC, this value is the width in logical units; otherwise, the width is specified in device units. If the pen type in the PenStyle field is PS_COSMETIC, this value MUST be 0x00000001.

Parameters:

ParameterTypeDescription
valueint

getBrushStyle()

public int getBrushStyle()

Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from the WMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4). If the pen type in the PenStyle field is PS_GEOMETRIC, this value MUST be either BS_SOLID or BS_HATCHED. The value of this field can be BS_NULL, but only if the line style specified in PenStyle is PS_NULL. The BS_NULL style SHOULD be used to specify a brush that has no effect.

Returns: int

setBrushStyle(int value)

public void setBrushStyle(int value)

Gets or sets a 32-bit unsigned integer that specifies a brush style for the pen from the WMF BrushStyle enumeration ([MS-WMF] section 2.1.1.4). If the pen type in the PenStyle field is PS_GEOMETRIC, this value MUST be either BS_SOLID or BS_HATCHED. The value of this field can be BS_NULL, but only if the line style specified in PenStyle is PS_NULL. The BS_NULL style SHOULD be used to specify a brush that has no effect.

Parameters:

ParameterTypeDescription
valueint

getArgb32ColorRef()

public int getArgb32ColorRef()

Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8). The interpretation of this field depends on the BrushStyle value, as shown in the table later in this section.

Value: The 32-bit ARGB color

Returns: int

setArgb32ColorRef(int value)

public void setArgb32ColorRef(int value)

Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8). The interpretation of this field depends on the BrushStyle value, as shown in the table later in this section.

Value: The 32-bit ARGB color

Parameters:

ParameterTypeDescription
valueint

getBrushHatch()

public int getBrushHatch()

Gets or sets the brush hatch pattern. The definition of this field depends on the BrushStyle value, as shown in the table later in this section.

Returns: int

setBrushHatch(int value)

public void setBrushHatch(int value)

Gets or sets the brush hatch pattern. The definition of this field depends on the BrushStyle value, as shown in the table later in this section.

Parameters:

ParameterTypeDescription
valueint

getNumStyleEntities()

public int getNumStyleEntities()

Gets the number of elements in the array specified in the StyleEntry field. This value SHOULD be zero if PenStyle does not specify PS_USERSTYLE.

Returns: int

getStyleEntry()

public int[] getStyleEntry()

Gets or sets an optional array of 32-bit unsigned integers that defines the lengths of dashes and gaps in the line drawn by this pen, when the value of PenStyle is PS_USERSTYLE line style for the pen. The array contains a number of entries specified by NumStyleEntries, but it is used as if it repeated indefinitely The first entry in the array specifies the length of the first dash. The second entry specifies the length of the first gap. Thereafter, lengths of dashes and gaps alternate. If the pen type in the PenStyle field is PS_GEOMETRIC, the lengths are specified in logical units; otherwise, the lengths are specified in device units.

Returns: int[]

setStyleEntry(int[] value)

public void setStyleEntry(int[] value)

Gets or sets an optional array of 32-bit unsigned integers that defines the lengths of dashes and gaps in the line drawn by this pen, when the value of PenStyle is PS_USERSTYLE line style for the pen. The array contains a number of entries specified by NumStyleEntries, but it is used as if it repeated indefinitely The first entry in the array specifies the length of the first dash. The second entry specifies the length of the first gap. Thereafter, lengths of dashes and gaps alternate. If the pen type in the PenStyle field is PS_GEOMETRIC, the lengths are specified in logical units; otherwise, the lengths are specified in device units.

Parameters:

ParameterTypeDescription
valueint[]

getBrushDibPattern()

public WmfDeviceIndependentBitmap getBrushDibPattern()

Gets or sets the brush dib pattern.

Value: The brush dib pattern.

Returns: WmfDeviceIndependentBitmap

setBrushDibPattern(WmfDeviceIndependentBitmap value)

public void setBrushDibPattern(WmfDeviceIndependentBitmap value)

Gets or sets the brush dib pattern.

Value: The brush dib pattern.

Parameters:

ParameterTypeDescription
valueWmfDeviceIndependentBitmap