コード例 #1
0
ファイル: PDFGraphics2D.java プロジェクト: jfree/orsonpdf
 /**
  * Fills the specified polygon using the current {@code paint}.
  *
  * @param xPoints the x-points.
  * @param yPoints the y-points.
  * @param nPoints the number of points to use for the polygon.
  * @see #drawPolygon(int[], int[], int)
  */
 @Override
 public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) {
   GeneralPath p = GraphicsUtils.createPolygon(xPoints, yPoints, nPoints, true);
   fill(p);
 }
コード例 #2
0
ファイル: PDFGraphics2D.java プロジェクト: jfree/orsonpdf
 /**
  * Draws the rendered image.
  *
  * @param img the image.
  * @param xform the transform.
  */
 @Override
 public void drawRenderedImage(RenderedImage img, AffineTransform xform) {
   BufferedImage bi = GraphicsUtils.convertRenderedImage(img);
   drawImage(bi, xform, null);
 }
コード例 #3
0
ファイル: PDFGraphics2D.java プロジェクト: jfree/orsonpdf
 /**
  * Draws the specified multi-segment line using the current {@code paint} and {@code stroke}.
  *
  * @param xPoints the x-points.
  * @param yPoints the y-points.
  * @param nPoints the number of points to use for the polyline.
  */
 @Override
 public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) {
   GeneralPath p = GraphicsUtils.createPolygon(xPoints, yPoints, nPoints, false);
   draw(p);
 }