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

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

Best Java code snippets using com.itextpdf.text.pdf.PdfContentByte.setRGBColorStroke (Showing top 8 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: org.gephi/preview-plugin

cb.moveTo(h.x, -h.y);
cb.curveTo(h.v1.x, -h.v1.y, h.v2.x, -h.v2.y, h.x, -h.y);
cb.setRGBColorStroke(
    color.getRed(),
    color.getGreen(),
origin: org.gephi/preview-plugin

cb.moveTo(h.x1, -h.y1);
cb.curveTo(h.v1.x, -h.v1.y, h.v2.x, -h.v2.y, h.x2, -h.y2);
cb.setRGBColorStroke(
    color.getRed(),
    color.getGreen(),
origin: org.gephi/preview-plugin

if (outlineSize > 0) {
  cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_STROKE);
  cb.setRGBColorStroke(outlineColor.getRed(), outlineColor.getGreen(), outlineColor.getBlue());
  cb.setLineWidth(outlineSize);
  cb.setLineJoin(PdfContentByte.LINE_JOIN_ROUND);
origin: org.gephi/preview-plugin

cb.moveTo(h.x1, -h.y1);
cb.lineTo(h.x2, -h.y2);
cb.setRGBColorStroke(
    color.getRed(),
    color.getGreen(),
origin: org.gephi/preview-plugin

if (outlineSize > 0) {
  cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_STROKE);
  cb.setRGBColorStroke(outlineColor.getRed(), outlineColor.getGreen(), outlineColor.getBlue());
  cb.setLineWidth(outlineSize);
  cb.setLineJoin(PdfContentByte.LINE_JOIN_ROUND);
origin: org.gephi/preview-plugin

cb.setRGBColorStroke(borderColor.getRed(), borderColor.getGreen(), borderColor.getBlue());
cb.setLineWidth(borderSize);
cb.setRGBColorFill(color.getRed(), color.getGreen(), color.getBlue());
origin: com.itextpdf/itextpdf

setRGBColorStroke(color.getRed(), color.getGreen(), color.getBlue());
origin: com.itextpdf/itextg

setRGBColorStroke(color.getRed(), color.getGreen(), color.getBlue());
com.itextpdf.text.pdfPdfContentBytesetRGBColorStroke

Javadoc

Changes the current color for stroking paths (device dependent colors!).

Sets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for stroking paths.

This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).

Following the PDF manual, each operand must be a number between 0 (minimum intensity) and 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.

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

  • Start an intent from android
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • orElseThrow (Optional)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JFrame (javax.swing)
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