Documentation ¶
Index ¶
- type Object
- func (pd *Object) Circle(x, y, radiusX, radiusY bag.ScaledPoint) *Object
- func (pd *Object) Clip() *Object
- func (pd *Object) Close() *Object
- func (pd *Object) Color(col color.Color) *Object
- func (pd *Object) ColorNonstroking(col color.Color) *Object
- func (pd *Object) ColorStroking(col color.Color) *Object
- func (pd *Object) Curveto(control1x, control1y, control2x, control2y, x1, y1 bag.ScaledPoint) *Object
- func (pd *Object) Endpath() *Object
- func (pd *Object) Fill() *Object
- func (pd *Object) LineWidth(wd bag.ScaledPoint) *Object
- func (pd *Object) Lineto(x, y bag.ScaledPoint) *Object
- func (pd *Object) Literal(s string) *Object
- func (pd *Object) Moveto(x, y bag.ScaledPoint) *Object
- func (pd *Object) Rect(x, y, wd, ht bag.ScaledPoint) *Object
- func (pd *Object) Restore() *Object
- func (pd *Object) Save() *Object
- func (pd *Object) SetDash(dasharray []uint, dashphase uint) *Object
- func (pd *Object) String() string
- func (pd *Object) Stroke() *Object
- func (pd *Object) StrokeFill() *Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents a set of PDF instructions to draw a PDF graphic
func NewStandalone ¶
func NewStandalone() *Object
NewStandalone creates a new PDF object encapsulated in q ... Q .
func (*Object) Circle ¶
func (pd *Object) Circle(x, y, radiusX, radiusY bag.ScaledPoint) *Object
Circle draws a circle. TODO: document where it starts/ends etc.
func (*Object) ColorNonstroking ¶
ColorNonstroking sets the non stroking color. If the color is the color “none”, then no color will be set.
func (*Object) ColorStroking ¶
ColorStroking sets the stroking color
func (*Object) Curveto ¶
func (pd *Object) Curveto(control1x, control1y, control2x, control2y, x1, y1 bag.ScaledPoint) *Object
Curveto appends a bezier curve from the current point to point 1 controlled by control points 1 and 2.
func (*Object) LineWidth ¶
func (pd *Object) LineWidth(wd bag.ScaledPoint) *Object
LineWidth sets the line width.
func (*Object) Lineto ¶
func (pd *Object) Lineto(x, y bag.ScaledPoint) *Object
Lineto draws a straight line from the current point to the point given at x and y.
func (*Object) Moveto ¶
func (pd *Object) Moveto(x, y bag.ScaledPoint) *Object
Moveto moves the cursor relative to the current point.
func (*Object) Rect ¶
func (pd *Object) Rect(x, y, wd, ht bag.ScaledPoint) *Object
Rect draws a rectangle.
func (*Object) StrokeFill ¶
StrokeFill paints the current object and fills it.