Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + type Context struct + func NewContext(width, height int) *Context + func NewContextForImage(im image.Image) *Context + func NewContextForRGBA(im *image.RGBA) *Context + func (dc *Context) AsMask() *image.Alpha + func (dc *Context) Clear() + func (dc *Context) ClearPath() + func (dc *Context) Clip() + func (dc *Context) ClipPreserve() + func (dc *Context) ClosePath() + func (dc *Context) CubicTo(x1, y1, x2, y2, x3, y3 float64) + func (dc *Context) DrawArc(x, y, r, angle1, angle2 float64) + func (dc *Context) DrawCircle(x, y, r float64) + func (dc *Context) DrawEllipse(x, y, rx, ry float64) + func (dc *Context) DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) + func (dc *Context) DrawImage(im image.Image, x, y int) + func (dc *Context) DrawImageAnchored(im image.Image, x, y int, ax, ay float64) + func (dc *Context) DrawLine(x1, y1, x2, y2 float64) + func (dc *Context) DrawPoint(x, y, r float64) + func (dc *Context) DrawRectangle(x, y, w, h float64) + func (dc *Context) DrawRoundedRectangle(x, y, w, h, r float64) + func (dc *Context) DrawString(s string, x, y float64) + func (dc *Context) DrawStringAnchored(s string, x, y, ax, ay float64) + func (dc *Context) Fill() + func (dc *Context) FillPreserve() + func (dc *Context) Height() int + func (dc *Context) Identity() + func (dc *Context) Image() image.Image + func (dc *Context) InvertMask() + func (dc *Context) LineTo(x, y float64) + func (dc *Context) LineWidth() float64 + func (dc *Context) Matrix() transform.Matrix + func (dc *Context) MeasureString(s string) (w, h float64) + func (dc *Context) MoveTo(x, y float64) + func (dc *Context) NewSubPath() + func (dc *Context) Pop() + func (dc *Context) Push() + func (dc *Context) QuadraticTo(x1, y1, x2, y2 float64) + func (dc *Context) ResetClip() + func (dc *Context) Rotate(angle float64) + func (dc *Context) RotateAbout(angle, x, y float64) + func (dc *Context) Scale(x, y float64) + func (dc *Context) ScaleAbout(sx, sy, x, y float64) + func (dc *Context) SetColor(c color.Color) + func (dc *Context) SetDash(dashes ...float64) + func (dc *Context) SetDashOffset(offset float64) + func (dc *Context) SetFillRGBA(r, g, b, a float64) + func (dc *Context) SetFillRule(fillRule context.FillRule) + func (dc *Context) SetFillStyle(pattern context.Pattern) + func (dc *Context) SetHexColor(x string) + func (dc *Context) SetLineCap(lineCap context.LineCap) + func (dc *Context) SetLineJoin(lineJoin context.LineJoin) + func (dc *Context) SetLineWidth(lineWidth float64) + func (dc *Context) SetMask(mask *image.Alpha) error + func (dc *Context) SetMatrix(m transform.Matrix) + func (dc *Context) SetPixel(x, y int) + func (dc *Context) SetRGB(r, g, b float64) + func (dc *Context) SetRGB255(r, g, b int) + func (dc *Context) SetRGBA(r, g, b, a float64) + func (dc *Context) SetRGBA255(r, g, b, a int) + func (dc *Context) SetStrokeRGBA(r, g, b, a float64) + func (dc *Context) SetStrokeStyle(pattern context.Pattern) + func (dc *Context) Shear(x, y float64) + func (dc *Context) ShearAbout(sx, sy, x, y float64) + func (dc *Context) Stroke() + func (dc *Context) StrokePreserve() + func (dc *Context) TextState() *context.TextState + func (dc *Context) Transform(x, y float64) (tx, ty float64) + func (dc *Context) Translate(x, y float64) + func (dc *Context) Width() int