Class MetaPen

java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
com.itextpdf.kernel.pdf.canvas.wmf.MetaPen

public class MetaPen extends MetaObject
A Pen object of the WMF format. Holds the color, style and width information of the pen.
  • Field Details

  • Constructor Details

    • MetaPen

      public MetaPen()
      Creates a MetaPen object.
  • Method Details

    • init

      public void init (InputMeta in) throws IOException
      Initializes a MetaPen object.
      Parameters:
      in - the InputMeta object that holds the inputstream of the WMF image
      Throws:
      IOException - an IOException
    • 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

      public Color getColor()
      Get the color of the MetaPen.
      Returns:
      color of the pen