Class MetaPen
java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
com.itextpdf.kernel.pdf.canvas.wmf.MetaPen
A Pen object of the WMF format. Holds the color, style and width information of the pen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
META_BRUSH, META_FONT, META_NOT_SUPPORTED, META_PEN -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
getType
-
Field Details
-
PS_SOLID
public static final int PS_SOLID- See Also:
-
PS_DASH
public static final int PS_DASH- See Also:
-
PS_DOT
public static final int PS_DOT- See Also:
-
PS_DASHDOT
public static final int PS_DASHDOT- See Also:
-
PS_DASHDOTDOT
public static final int PS_DASHDOTDOT- See Also:
-
PS_NULL
public static final int PS_NULL- See Also:
-
PS_INSIDEFRAME
public static final int PS_INSIDEFRAME- See Also:
-
-
Constructor Details
-
MetaPen
public MetaPen()Creates a MetaPen object.
-
-
Method Details
-
init
Initializes a MetaPen object.- Parameters:
-
in- the InputMeta object that holds the inputstream of the WMF image - Throws:
-
IOException- anIOException
-
getStyle
public int getStyle()Get the style of the MetaPen.- Returns:
- style of the pen
-
getPenWidth
public int getPenWidth()Get the width of the MetaPen.- Returns:
- width of the pen
-
getColor
Get the color of the MetaPen.- Returns:
- color of the pen
-