pdfcanvas-ag凯发旗舰厅



com.spire.pdf.graphics
class pdfcanvas

java.lang.object
  extended by com.spire.pdf.graphics.pdfcanvas

public final class pdfcanvas
extends java.lang.object

the class representing a graphics context of the objects. it's used for performing simple graphics operations.


constructor summary
pdfcanvas()
           
pdfcanvas(java.awt.geom.dimension2d size,  resources,  stream)
           
pdfcanvas(java.awt.geom.dimension2d size,  resources,  writer)
           
 
method summary
 void drawarc(pdfpen pen, double x, double y, double width, double height, double startangle, double sweepangle)
          draws an arc.
 void drawarc(pdfpen pen, float x, float y, float width, float height, float startangle, float sweepangle)
          draws an arc.
 void drawarc(pdfpen pen, java.awt.geom.rectangle2d rectangle, double startangle, double sweepangle)
          draws an arc.
 void drawbezier(pdfpen pen, double startpointx, double startpointy, double firstcontrolpointx, double firstcontrolpointy, double secondcontrolpointx, double secondcontrolpointy, double endpointx, double endpointy)
          draws a bezier curve.
 void drawbezier(pdfpen pen, float startpointx, float startpointy, float firstcontrolpointx, float firstcontrolpointy, float secondcontrolpointx, float secondcontrolpointy, float endpointx, float endpointy)
          draws a bezier curve.
 void drawbezier(pdfpen pen, java.awt.geom.point2d startpoint, java.awt.geom.point2d firstcontrolpoint, java.awt.geom.point2d secondcontrolpoint, java.awt.geom.point2d endpoint)
          draws a bezier curve.
 void drawellipse(pdfbrush brush, double x, double y, double width, double height)
          draws an ellipse.
 void drawellipse(pdfbrush brush, float x, float y, float width, float height)
          draws an ellipse.
 void drawellipse(pdfbrush brush, java.awt.geom.rectangle2d rectangle)
          draws an ellipse.
 void drawellipse(pdfpen pen, double x, double y, double width, double height)
          draws an ellipse.
 void drawellipse(pdfpen pen, float x, float y, float width, float height)
          draws an ellipse.
 void drawellipse(pdfpen pen, pdfbrush brush, double x, double y, double width, double height)
          draws an ellipse.
 void drawellipse(pdfpen pen, pdfbrush brush, float x, float y, float width, float height)
          draws an ellipse.
 void drawellipse(pdfpen pen, pdfbrush brush, java.awt.geom.rectangle2d rectangle)
          draws an ellipse.
 void drawellipse(pdfpen pen, java.awt.geom.rectangle2d rectangle)
          draws an ellipse.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, com.spire.ms.system.drawing.rectanglef layoutrectangle, pdfstringformat format)
          draws the specified text string at the specified location and size with the specified pen, brush and font objects.
 void drawimage(pdfimage image, double x, double y)
          draws an image.
 void drawimage(pdfimage image, double x, double y, double width, double height)
          draws an image.
 void drawimage(pdfimage image, float x, float y)
          draws an image.
 void drawimage(pdfimage image, float x, float y, float width, float height)
          draws an image.
 void drawimage(pdfimage image, int compressionquality, double x, double y, double width, double height)
          draws an image,recommending monochrome image
 void drawimage(pdfimage image, int compressionquality, float x, float y, float width, float height)
          draws an image,recommending monochrome image
 void drawimage(pdfimage image, int compressionquality, java.awt.geom.point2d point, java.awt.geom.dimension2d size)
          draws an image,recommending monochrome image.
 void drawimage(pdfimage image, java.awt.geom.point2d point)
          draws an image.
 void drawimage(pdfimage image, java.awt.geom.point2d point, java.awt.geom.dimension2d size)
          draws an image.
 void drawimage(pdfimage image, java.awt.geom.rectangle2d rectangle)
          draws an image.
 void drawline(pdfpen pen, double x1, double y1, double x2, double y2)
          draws a line.
 void drawline(pdfpen pen, float x1, float y1, float x2, float y2)
          draws a line.
 void drawline(pdfpen pen, java.awt.geom.point2d point1, java.awt.geom.point2d point2)
          draws a line.
 void drawpath(pdfbrush brush, pdfpath path)
          draws a path.
 void drawpath(pdfpen pen, pdfbrush brush, pdfpath path)
          draws a path.
 void drawpath(pdfpen pen, pdfpath path)
          draws a path.
 void drawpie(pdfbrush brush, double x, double y, double width, double height, double startangle, double sweepangle)
          draws a pie.
 void drawpie(pdfbrush brush, float x, float y, float width, float height, float startangle, float sweepangle)
          draws a pie.
 void drawpie(pdfbrush brush, java.awt.geom.rectangle2d rectangle, double startangle, double sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, double x, double y, double width, double height, double startangle, double sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, float x, float y, float width, float height, float startangle, float sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, pdfbrush brush, double x, double y, double width, double height, double startangle, double sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, pdfbrush brush, float x, float y, float width, float height, float startangle, float sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, pdfbrush brush, java.awt.geom.rectangle2d rectangle, double startangle, double sweepangle)
          draws a pie.
 void drawpie(pdfpen pen, java.awt.geom.rectangle2d rectangle, double startangle, double sweepangle)
          draws a pie.
 void drawpolygon(pdfbrush brush, java.awt.geom.point2d[] points)
          draws a polygon.
 void drawpolygon(pdfpen pen, pdfbrush brush, java.awt.geom.point2d[] points)
          draws a polygon.
 void drawpolygon(pdfpen pen, java.awt.geom.point2d[] points)
          draws a polygon.
 void drawrectangle(pdfbrush brush, double x, double y, double width, double height)
          draws a rectangle.
 void drawrectangle(pdfbrush brush, float x, float y, float width, float height)
          draws a rectangle.
 void drawrectangle(pdfbrush brush, java.awt.geom.rectangle2d rectangle)
          draws a rectangle.
 void drawrectangle(pdfpen pen, double x, double y, double width, double height)
          draws a rectangle.
 void drawrectangle(pdfpen pen, float x, float y, float width, float height)
          draws a rectangle.
 void drawrectangle(pdfpen pen, pdfbrush brush, double x, double y, double width, double height)
          draws a rectangle.
 void drawrectangle(pdfpen pen, pdfbrush brush, float x, float y, float width, float height)
          draws a rectangle.
 void drawrectangle(pdfpen pen, pdfbrush brush, java.awt.geom.rectangle2d rectangle)
          draws a rectangle.
 void drawrectangle(pdfpen pen, java.awt.geom.rectangle2d rectangle)
          draws a rectangle.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, double x, double y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, double x, double y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, double x, double y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, double x, double y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, float x, float y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, float x, float y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, float x, float y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, float x, float y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.point2d point)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.point2d point, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.point2d point, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.point2d point, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle)
          draws the specified text string at the specified location and size with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle, boolean htmltags)
          draws the specified text string at the specified location and size with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format)
          draws the specified text string at the specified location and size with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location and size with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, double x, double y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, double x, double y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, double x, double y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, double x, double y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, float x, float y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, float x, float y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, float x, float y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, float x, float y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, double x, double y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, double x, double y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, double x, double y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, double x, double y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, float x, float y)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, float x, float y, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, float x, float y, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, float x, float y, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.point2d point)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.point2d point, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.point2d point, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.point2d point, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format)
          draws the specified text string at the specified location and size with the specified pen, brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, pdfbrush brush, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location and size with the specified pen, brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.point2d point)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.point2d point, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.point2d point, pdfstringformat format)
          draws the specified text string at the specified location with the specified brush and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.point2d point, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location with the specified brush and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.rectangle2d layoutrectangle)
          draws the specified text string at the specified location and size with the specified pen and font objects.
 void drawstring(java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.rectangle2d layoutrectangle, boolean htmltags)
          draws the specified text string at the specified location and size with the specified pen and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format)
          draws the specified text string at the specified location and size with the specified pen and font objects.
 void (java.lang.string s, pdffontbase font, pdfpen pen, java.awt.geom.rectangle2d layoutrectangle, pdfstringformat format, boolean htmltags)
          draws the specified text string at the specified location and size with the specified pen and font objects.
 void drawtemplate(pdftemplate template, java.awt.geom.point2d location)
          draws a template using its original size, at the specified location.
 void drawtemplate(pdftemplate template, java.awt.geom.point2d location, java.awt.geom.dimension2d size)
          draws a template at the specified location and size.
 java.awt.geom.dimension2d getclientsize()
          gets the size of the canvas reduced by margins and page templates.
  getcolorspace()
          gets the current color space.
 java.awt.geom.dimension2d getsize()
          gets the size of the canvas.
 void restore()
          restores the last state of this graphics.
 void restore(pdfgraphicsstate state)
          restores the state of this graphics to the state represented by a graphicsstate.
 void rotatetransform(float angle)
          rotates the coordinate system in counterclockwise direction.
 pdfgraphicsstate save()
          saves the current state of this graphics and identifies the saved state with a graphicsstate.
 void scaletransform(double scalex, double scaley)
          scales the coordinates by specified coordinates.
 void scaletransform(float scalex, float scaley)
          scales the coordinates by specified coordinates.
 void setcolorspace( value)
          sets the current color space.
 void settransparency(double alpha)
          sets the transparency.
 void settransparency(double alphapen, double alphabrush)
          sets the transparency.
 void settransparency(double alphapen, double alphabrush, pdfblendmode blendmode)
          sets the transparency.
 void settransparency(float alpha)
          sets the transparency.
 void settransparency(float alphapen, float alphabrush)
          sets the transparency.
 void settransparency(float alphapen, float alphabrush, pdfblendmode blendmode)
          sets the transparency.
 void skewtransform(float anglex, float angley)
          skews the coordinate system axes.
 void translatetransform(double offsetx, double offsety)
          translates the coordinates by specified coordinates.
 
constructor detail

pdfcanvas

public pdfcanvas(java.awt.geom.dimension2d size,
                  resources,
                  writer)

pdfcanvas

public pdfcanvas(java.awt.geom.dimension2d size,
                  resources,
                  stream)

pdfcanvas

public pdfcanvas()
method detail

getsize

public java.awt.geom.dimension2d getsize()
gets the size of the canvas.
see also:
usually, this value is equal to the size of the object this graphics belongs to.

getclientsize

public java.awt.geom.dimension2d getclientsize()
gets the size of the canvas reduced by margins and page templates. it indicates a size of the canvas reduced by margins and template dimensions. this value doesn't change when any custom clip is set.

getcolorspace

public  getcolorspace()
gets the current color space. the value change of this property has impact on the objects which will be drawn after the change.

setcolorspace

public void setcolorspace( value)
sets the current color space. the value change of this property has impact on the objects which will be drawn after the change.

drawline

public void drawline(pdfpen pen,
                     java.awt.geom.point2d point1,
                     java.awt.geom.point2d point2)
draws a line.
parameters:
pen - the pen.
point1 - the point1.
point2 - the point2.

drawline

public void drawline(pdfpen pen,
                     float x1,
                     float y1,
                     float x2,
                     float y2)
draws a line.
parameters:
pen - the pen.
x1 - the x1.
y1 - the y1.
x2 - the x2.
y2 - the y2.

drawline

public void drawline(pdfpen pen,
                     double x1,
                     double y1,
                     double x2,
                     double y2)
draws a line.
parameters:
pen - the pen.
x1 - the x1.
y1 - the y1.
x2 - the x2.
y2 - the y2.

drawrectangle

public void drawrectangle(pdfpen pen,
                          java.awt.geom.rectangle2d rectangle)
draws a rectangle.
parameters:
pen - the pen.
rectangle - the rectangle.

drawrectangle

public void drawrectangle(pdfpen pen,
                          float x,
                          float y,
                          float width,
                          float height)
draws a rectangle.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.

drawrectangle

public void drawrectangle(pdfpen pen,
                          double x,
                          double y,
                          double width,
                          double height)
draws a rectangle.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.

drawrectangle

public void drawrectangle(pdfbrush brush,
                          java.awt.geom.rectangle2d rectangle)
draws a rectangle.
parameters:
brush - the brush.
rectangle - the rectangle.

drawrectangle

public void drawrectangle(pdfbrush brush,
                          float x,
                          float y,
                          float width,
                          float height)
draws a rectangle.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawrectangle

public void drawrectangle(pdfbrush brush,
                          double x,
                          double y,
                          double width,
                          double height)
draws a rectangle.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawrectangle

public void drawrectangle(pdfpen pen,
                          pdfbrush brush,
                          java.awt.geom.rectangle2d rectangle)
draws a rectangle.
parameters:
pen - the pen.
brush - the brush.
rectangle - the rectangle.

drawrectangle

public void drawrectangle(pdfpen pen,
                          pdfbrush brush,
                          float x,
                          float y,
                          float width,
                          float height)
draws a rectangle.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawrectangle

public void drawrectangle(pdfpen pen,
                          pdfbrush brush,
                          double x,
                          double y,
                          double width,
                          double height)
draws a rectangle.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfpen pen,
                        java.awt.geom.rectangle2d rectangle)
draws an ellipse.
parameters:
pen - the pen.
rectangle - the rectangle.

drawellipse

public void drawellipse(pdfpen pen,
                        float x,
                        float y,
                        float width,
                        float height)
draws an ellipse.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfpen pen,
                        double x,
                        double y,
                        double width,
                        double height)
draws an ellipse.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfbrush brush,
                        java.awt.geom.rectangle2d rectangle)
draws an ellipse.
parameters:
brush - the brush.
rectangle - the rectangle.

drawellipse

public void drawellipse(pdfbrush brush,
                        float x,
                        float y,
                        float width,
                        float height)
draws an ellipse.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfbrush brush,
                        double x,
                        double y,
                        double width,
                        double height)
draws an ellipse.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfpen pen,
                        pdfbrush brush,
                        java.awt.geom.rectangle2d rectangle)
draws an ellipse.
parameters:
pen - the pen.
brush - the brush.
rectangle - the rectangle.

drawellipse

public void drawellipse(pdfpen pen,
                        pdfbrush brush,
                        float x,
                        float y,
                        float width,
                        float height)
draws an ellipse.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawellipse

public void drawellipse(pdfpen pen,
                        pdfbrush brush,
                        double x,
                        double y,
                        double width,
                        double height)
draws an ellipse.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.

drawarc

public void drawarc(pdfpen pen,
                    java.awt.geom.rectangle2d rectangle,
                    double startangle,
                    double sweepangle)
draws an arc.
parameters:
pen - the pen.
rectangle - the rectangle.
startangle - the start angle.
sweepangle - the sweep angle.

drawarc

public void drawarc(pdfpen pen,
                    float x,
                    float y,
                    float width,
                    float height,
                    float startangle,
                    float sweepangle)
draws an arc.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawarc

public void drawarc(pdfpen pen,
                    double x,
                    double y,
                    double width,
                    double height,
                    double startangle,
                    double sweepangle)
draws an arc.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    java.awt.geom.rectangle2d rectangle,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
pen - the pen.
rectangle - the rectangle.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    float x,
                    float y,
                    float width,
                    float height,
                    float startangle,
                    float sweepangle)
draws a pie.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    double x,
                    double y,
                    double width,
                    double height,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
pen - the pen.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfbrush brush,
                    java.awt.geom.rectangle2d rectangle,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
brush - the brush.
rectangle - the rectangle.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfbrush brush,
                    float x,
                    float y,
                    float width,
                    float height,
                    float startangle,
                    float sweepangle)
draws a pie.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfbrush brush,
                    double x,
                    double y,
                    double width,
                    double height,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    pdfbrush brush,
                    java.awt.geom.rectangle2d rectangle,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
pen - the pen.
brush - the brush.
rectangle - the rectangle.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    pdfbrush brush,
                    float x,
                    float y,
                    float width,
                    float height,
                    float startangle,
                    float sweepangle)
draws a pie.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpie

public void drawpie(pdfpen pen,
                    pdfbrush brush,
                    double x,
                    double y,
                    double width,
                    double height,
                    double startangle,
                    double sweepangle)
draws a pie.
parameters:
pen - the pen.
brush - the brush.
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

drawpolygon

public void drawpolygon(pdfpen pen,
                        java.awt.geom.point2d[] points)
draws a polygon.
parameters:
pen - the pen.
points - the points.

drawpolygon

public void drawpolygon(pdfbrush brush,
                        java.awt.geom.point2d[] points)
draws a polygon.
parameters:
brush - the brush.
points - the points.

drawpolygon

public void drawpolygon(pdfpen pen,
                        pdfbrush brush,
                        java.awt.geom.point2d[] points)
draws a polygon.
parameters:
pen - the pen.
brush - the brush.
points - the points.

drawbezier

public void drawbezier(pdfpen pen,
                       java.awt.geom.point2d startpoint,
                       java.awt.geom.point2d firstcontrolpoint,
                       java.awt.geom.point2d secondcontrolpoint,
                       java.awt.geom.point2d endpoint)
draws a bezier curve.
parameters:
pen - the pen.
startpoint - the start point.
firstcontrolpoint - the first control point.
secondcontrolpoint - the second control point.
endpoint - the end point.

drawbezier

public void drawbezier(pdfpen pen,
                       float startpointx,
                       float startpointy,
                       float firstcontrolpointx,
                       float firstcontrolpointy,
                       float secondcontrolpointx,
                       float secondcontrolpointy,
                       float endpointx,
                       float endpointy)
draws a bezier curve.
parameters:
pen - the pen.
startpointx - the start point x.
startpointy - the start point y.
firstcontrolpointx - the first control point x.
firstcontrolpointy - the first control point y.
secondcontrolpointx - the second control point x.
secondcontrolpointy - the second control point y.
endpointx - the end point x.
endpointy - the end point y.

drawbezier

public void drawbezier(pdfpen pen,
                       double startpointx,
                       double startpointy,
                       double firstcontrolpointx,
                       double firstcontrolpointy,
                       double secondcontrolpointx,
                       double secondcontrolpointy,
                       double endpointx,
                       double endpointy)
draws a bezier curve.
parameters:
pen - the pen.
startpointx - the start point x.
startpointy - the start point y.
firstcontrolpointx - the first control point x.
firstcontrolpointy - the first control point y.
secondcontrolpointx - the second control point x.
secondcontrolpointy - the second control point y.
endpointx - the end point x.
endpointy - the end point y.

drawpath

public void drawpath(pdfpen pen,
                     pdfpath path)
draws a path.
parameters:
pen - the pen.
path - the path.

drawpath

public void drawpath(pdfbrush brush,
                     pdfpath path)
draws a path.
parameters:
brush - the brush.
path - the path.

drawpath

public void drawpath(pdfpen pen,
                     pdfbrush brush,
                     pdfpath path)
draws a path.
parameters:
pen - the pen.
brush - the brush.
path - the path.

drawimage

public void drawimage(pdfimage image,
                      java.awt.geom.point2d point)
draws an image.
parameters:
image - the image.
point - the point.

drawimage

public void drawimage(pdfimage image,
                      float x,
                      float y)
draws an image.
parameters:
image - the image.
x - the x.
y - the y.

drawimage

public void drawimage(pdfimage image,
                      double x,
                      double y)
draws an image.
parameters:
image - the image.
x - the x.
y - the y.

drawimage

public void drawimage(pdfimage image,
                      java.awt.geom.rectangle2d rectangle)
draws an image.
parameters:
image - the image.
rectangle - the rectangle.

drawimage

public void drawimage(pdfimage image,
                      java.awt.geom.point2d point,
                      java.awt.geom.dimension2d size)
draws an image.
parameters:
image - the image.
point - the point.
size - the size.

drawimage

public void drawimage(pdfimage image,
                      int compressionquality,
                      java.awt.geom.point2d point,
                      java.awt.geom.dimension2d size)
draws an image,recommending monochrome image.
parameters:
image - the image.
compressionquality - the image compresson quality.
point - the point.
size - the size.

drawimage

public void drawimage(pdfimage image,
                      float x,
                      float y,
                      float width,
                      float height)
draws an image.
parameters:
image - the image.
x - the x.
y - the y.
width - the width.
height - the height.

drawimage

public void drawimage(pdfimage image,
                      double x,
                      double y,
                      double width,
                      double height)
draws an image.
parameters:
image - the image.
x - the x.
y - the y.
width - the width.
height - the height.

drawimage

public void drawimage(pdfimage image,
                      int compressionquality,
                      float x,
                      float y,
                      float width,
                      float height)
draws an image,recommending monochrome image
parameters:
image - the image.
compressionquality - the image compresson quality.
x - the x.
y - the y.
width - the width.
height - the height.

drawimage

public void drawimage(pdfimage image,
                      int compressionquality,
                      double x,
                      double y,
                      double width,
                      double height)
draws an image,recommending monochrome image
parameters:
image - the image.
compressionquality - the image compresson quality.
x - the x.
y - the y.
width - the width.
height - the height.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.point2d point)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
point - the location point.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
point - the point.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       float x,
                       float y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       double x,
                       double y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       float x,
                       float y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       double x,
                       double y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.point2d point)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
point - the location point.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.point2d point,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
point - the point.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       float x,
                       float y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       double x,
                       double y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       float x,
                       float y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       double x,
                       double y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.point2d point)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
point - the location point.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
point - the point.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       float x,
                       float y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       double x,
                       double y,
                       pdfstringformat format)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       float x,
                       float y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       double x,
                       double y)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle)
draws the specified text string at the specified location and size with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format)
draws the specified text string at the specified location and size with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.rectangle2d layoutrectangle)
draws the specified text string at the specified location and size with the specified pen and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format)
draws the specified text string at the specified location and size with the specified pen and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.

drawformfieldstring

public void drawformfieldstring(java.lang.string s,
                                pdffontbase font,
                                pdfpen pen,
                                pdfbrush brush,
                                com.spire.ms.system.drawing.rectanglef layoutrectangle,
                                pdfstringformat format)
draws the specified text string at the specified location and size with the specified pen, brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format)
draws the specified text string at the specified location and size with the specified pen, brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
point - the location point.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
point - the point.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       float x,
                       float y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       double x,
                       double y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       float x,
                       float y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       double x,
                       double y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.point2d point,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
point - the location point.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.point2d point,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
point - the point.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       float x,
                       float y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       double x,
                       double y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       float x,
                       float y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       double x,
                       double y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
point - the location point.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.point2d point,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
point - the point.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       float x,
                       float y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       double x,
                       double y,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       float x,
                       float y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       double x,
                       double y,
                       boolean htmltags)
draws the specified text string at the specified location with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
x - the x.
y - the y.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle,
                       boolean htmltags)
draws the specified text string at the specified location and size with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location and size with the specified brush and font objects.
parameters:
s - the text string.
font - the font.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.rectangle2d layoutrectangle,
                       boolean htmltags)
draws the specified text string at the specified location and size with the specified pen and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location and size with the specified pen and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.
htmltags - whether the parsing of html tags

drawstring

public void drawstring(java.lang.string s,
                       pdffontbase font,
                       pdfpen pen,
                       pdfbrush brush,
                       java.awt.geom.rectangle2d layoutrectangle,
                       pdfstringformat format,
                       boolean htmltags)
draws the specified text string at the specified location and size with the specified pen, brush and font objects.
parameters:
s - the text string.
font - the font.
pen - the pen.
brush - the brush.
layoutrectangle - rectanglef structure that specifies the bounds of the drawn text.
format - the text string format.
htmltags - whether the parsing of html tags

translatetransform

public void translatetransform(double offsetx,
                               double offsety)
translates the coordinates by specified coordinates. the x value by which to translate coordinate system. the y value by which to translate coordinate system.

scaletransform

public void scaletransform(float scalex,
                           float scaley)
scales the coordinates by specified coordinates. the value by which to scale coordinate system in the x axis direction. the value by which to scale coordinate system in the y axis direction.

scaletransform

public void scaletransform(double scalex,
                           double scaley)
scales the coordinates by specified coordinates. the value by which to scale coordinate system in the x axis direction. the value by which to scale coordinate system in the y axis direction.

rotatetransform

public void rotatetransform(float angle)
rotates the coordinate system in counterclockwise direction.
parameters:
angle - the angle of the rotation (in degrees).

skewtransform

public void skewtransform(float anglex,
                          float angley)
skews the coordinate system axes. skews the x axis by this angle (in degrees). skews the y axis by this angle (in degrees).

drawtemplate

public void drawtemplate(pdftemplate template,
                         java.awt.geom.point2d location)
draws a template using its original size, at the specified location.
parameters:
template - object.
location - location of the template.

drawtemplate

public void drawtemplate(pdftemplate template,
                         java.awt.geom.point2d location,
                         java.awt.geom.dimension2d size)
draws a template at the specified location and size.
parameters:
template - object.
location - location of the template.
size - size of the template.

save

public pdfgraphicsstate save()
saves the current state of this graphics and identifies the saved state with a graphicsstate.
returns:
this method returns a graphicsstate that represents the saved state of this graphics.
see also:
this method works similar to method.

restore

public void restore()
restores the last state of this graphics.

restore

public void restore(pdfgraphicsstate state)
restores the state of this graphics to the state represented by a graphicsstate.
parameters:
state - graphicsstate that represents the state to which to restore this graphics.
see also:
this method works similar to method.

settransparency

public void settransparency(float alpha)
sets the transparency. the alpha value for both pen and brush operations.

settransparency

public void settransparency(double alpha)
sets the transparency. the alpha value for both pen and brush operations.

settransparency

public void settransparency(float alphapen,
                            float alphabrush)
sets the transparency.
parameters:
alphapen - the alpha value for pen operations.
alphabrush - the alpha value for brush operations.

settransparency

public void settransparency(double alphapen,
                            double alphabrush)
sets the transparency.
parameters:
alphapen - the alpha value for pen operations.
alphabrush - the alpha value for brush operations.

settransparency

public void settransparency(float alphapen,
                            float alphabrush,
                            pdfblendmode blendmode)
sets the transparency.
parameters:
alphapen - the alpha value for pen operations.
alphabrush - the alpha value for brush operations.
blendmode - the blend mode.

settransparency

public void settransparency(double alphapen,
                            double alphabrush,
                            pdfblendmode blendmode)
sets the transparency.
parameters:
alphapen - the alpha value for pen operations.
alphabrush - the alpha value for brush operations.
blendmode - the blend mode.


网站地图