Codota Logo
PdfContentByte.closePathEoFillStroke
Code IndexAdd Codota to your IDE (free)

How to use
closePathEoFillStroke
method
in
com.itextpdf.text.pdf.PdfContentByte

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.closePathEoFillStroke (Showing top 2 results out of 315)

  • Common ways to obtain PdfContentByte
private void myMethod () {
PdfContentByte p =
  • Codota IconPdfWriter writer;writer.getDirectContent()
  • Codota IconPdfStamper pdfStamper;pdfStamper.getOverContent(pageNum)
  • Codota IconPdfStamper pdfStamper;pdfStamper.getUnderContent(pageNum)
  • Smart code suggestions by Codota
}
origin: com.itextpdf/itextpdf

public void strokeAndFill(){
  MetaPen pen = state.getCurrentPen();
  MetaBrush brush = state.getCurrentBrush();
  int penStyle = pen.getStyle();
  int brushStyle = brush.getStyle();
  if (penStyle == MetaPen.PS_NULL) {
    cb.closePath();
    if (state.getPolyFillMode() == MetaState.ALTERNATE) {
      cb.eoFill();
    }
    else {
      cb.fill();
    }
  }
  else {
    boolean isBrush = brushStyle == MetaBrush.BS_SOLID || brushStyle == MetaBrush.BS_HATCHED && state.getBackgroundMode() == MetaState.OPAQUE;
    if (isBrush) {
      if (state.getPolyFillMode() == MetaState.ALTERNATE)
        cb.closePathEoFillStroke();
      else
        cb.closePathFillStroke();
    }
    else {
      cb.closePathStroke();
    }
  }
}
origin: com.itextpdf/itextg

public void strokeAndFill(){
  MetaPen pen = state.getCurrentPen();
  MetaBrush brush = state.getCurrentBrush();
  int penStyle = pen.getStyle();
  int brushStyle = brush.getStyle();
  if (penStyle == MetaPen.PS_NULL) {
    cb.closePath();
    if (state.getPolyFillMode() == MetaState.ALTERNATE) {
      cb.eoFill();
    }
    else {
      cb.fill();
    }
  }
  else {
    boolean isBrush = brushStyle == MetaBrush.BS_SOLID || brushStyle == MetaBrush.BS_HATCHED && state.getBackgroundMode() == MetaState.OPAQUE;
    if (isBrush) {
      if (state.getPolyFillMode() == MetaState.ALTERNATE)
        cb.closePathEoFillStroke();
      else
        cb.closePathFillStroke();
    }
    else {
      cb.closePathStroke();
    }
  }
}
com.itextpdf.text.pdfPdfContentByteclosePathEoFillStroke

Javadoc

Closes the path, fills it using the even-odd rule to determine the region to fill and strokes it.

Popular methods of PdfContentByte

  • addTemplate
    adds a template with the given matrix.
  • createTemplate
  • beginText
    Starts the writing of text.
  • endText
    Ends the writing of text and makes the current font invalid.
  • lineTo
    Appends a straight line segment from the current point (x, y). The new current point is (x, y).
  • moveTo
    Move the current point (x, y), omitting any connecting line segment.
  • restoreState
    Restores the graphic state. saveState andrestoreState must be balanced.
  • saveState
    Saves the graphic state. saveState andrestoreState must be balanced.
  • setFontAndSize
    Set the font and the size for the subsequent text writing.
  • setLineWidth
    Changes the line width. The line width specifies the thickness of the line used to stroke a path and
  • stroke
    Strokes the path.
  • addImage
    Adds an Image to the page. The Image must have absolute positioning. The image can be placed inline.
  • stroke,
  • addImage,
  • setTextMatrix,
  • showText,
  • fill,
  • rectangle,
  • setColorFill,
  • setColorStroke,
  • setGState,
  • beginLayer

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Path (java.nio.file)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now