imagerender

package
v3.0.0-...-55e877b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLinearGradient

func NewLinearGradient(x0, y0, x1, y1 float64) _ae.Gradient

func NewRadialGradient

func NewRadialGradient(x0, y0, r0, x1, y1, r1 float64) _ae.Gradient

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(width, height int) *Context

func NewContextForImage

func NewContextForImage(im _e.Image) *Context

func NewContextForRGBA

func NewContextForRGBA(im *_e.RGBA) *Context

func (*Context) AsMask

func (_ebab *Context) AsMask() *_e.Alpha

func (*Context) Clear

func (_bac *Context) Clear()

func (*Context) ClearPath

func (_cca *Context) ClearPath()

func (*Context) Clip

func (_deg *Context) Clip()

func (*Context) ClipPreserve

func (_afa *Context) ClipPreserve()

func (*Context) ClosePath

func (_cec *Context) ClosePath()

func (*Context) CubicTo

func (_fgb *Context) CubicTo(x1, y1, x2, y2, x3, y3 float64)

func (*Context) DrawArc

func (_gcc *Context) DrawArc(x, y, r, angle1, angle2 float64)

func (*Context) DrawCircle

func (_dda *Context) DrawCircle(x, y, r float64)

func (*Context) DrawEllipse

func (_gbeg *Context) DrawEllipse(x, y, rx, ry float64)

func (*Context) DrawEllipticalArc

func (_bfb *Context) DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64)

func (*Context) DrawImage

func (_aba *Context) DrawImage(im _e.Image, x, y int)

func (*Context) DrawImageAnchored

func (_eda *Context) DrawImageAnchored(im _e.Image, x, y int, ax, ay float64)

func (*Context) DrawLine

func (_cag *Context) DrawLine(x1, y1, x2, y2 float64)

func (*Context) DrawPoint

func (_efba *Context) DrawPoint(x, y, r float64)

func (*Context) DrawRectangle

func (_baa *Context) DrawRectangle(x, y, w, h float64)

func (*Context) DrawRoundedRectangle

func (_ffd *Context) DrawRoundedRectangle(x, y, w, h, r float64)

func (*Context) DrawString

func (_aga *Context) DrawString(s string, face _f.Face, x, y float64)

func (*Context) DrawStringAnchored

func (_cff *Context) DrawStringAnchored(s string, face _f.Face, x, y, ax, ay float64)

func (*Context) Fill

func (_ebg *Context) Fill()

func (*Context) FillPattern

func (_bed *Context) FillPattern() _ae.Pattern

func (*Context) FillPreserve

func (_deca *Context) FillPreserve()

func (*Context) Height

func (_abbf *Context) Height() int

func (*Context) Identity

func (_eaed *Context) Identity()

func (*Context) Image

func (_gde *Context) Image() _e.Image

func (*Context) InvertMask

func (_ccab *Context) InvertMask()

func (*Context) LineTo

func (_ced *Context) LineTo(x, y float64)

func (*Context) LineWidth

func (_cge *Context) LineWidth() float64

func (*Context) Matrix

func (_efa *Context) Matrix() _g.Matrix

func (*Context) MeasureString

func (_cgeg *Context) MeasureString(s string, face _f.Face) (_gff, _gdc float64)

func (*Context) MoveTo

func (_gdd *Context) MoveTo(x, y float64)

func (*Context) NewSubPath

func (_eb *Context) NewSubPath()

func (*Context) Pop

func (_gaeg *Context) Pop()

func (*Context) Push

func (_dcf *Context) Push()

func (*Context) QuadraticTo

func (_afb *Context) QuadraticTo(x1, y1, x2, y2 float64)

func (*Context) ResetClip

func (_cad *Context) ResetClip()

func (*Context) Rotate

func (_ccc *Context) Rotate(angle float64)

func (*Context) RotateAbout

func (_dgc *Context) RotateAbout(angle, x, y float64)

func (*Context) Scale

func (_eagd *Context) Scale(x, y float64)

func (*Context) ScaleAbout

func (_cegd *Context) ScaleAbout(sx, sy, x, y float64)

func (*Context) SetColor

func (_bdb *Context) SetColor(c _dd.Color)

func (*Context) SetDash

func (_agf *Context) SetDash(dashes ...float64)

func (*Context) SetDashOffset

func (_dec *Context) SetDashOffset(offset float64)

func (*Context) SetFillRGBA

func (_ddgd *Context) SetFillRGBA(r, g, b, a float64)

func (*Context) SetFillRule

func (_cbe *Context) SetFillRule(fillRule _ae.FillRule)

func (*Context) SetFillStyle

func (_cce *Context) SetFillStyle(pattern _ae.Pattern)

func (*Context) SetHexColor

func (_gcbg *Context) SetHexColor(x string)

func (*Context) SetLineCap

func (_aac *Context) SetLineCap(lineCap _ae.LineCap)

func (*Context) SetLineJoin

func (_dg *Context) SetLineJoin(lineJoin _ae.LineJoin)

func (*Context) SetLineWidth

func (_feb *Context) SetLineWidth(lineWidth float64)

func (*Context) SetMask

func (_bfc *Context) SetMask(mask *_e.Alpha) error

func (*Context) SetMatrix

func (_bbe *Context) SetMatrix(m _g.Matrix)

func (*Context) SetPixel

func (_ecg *Context) SetPixel(x, y int)

func (*Context) SetRGB

func (_dbg *Context) SetRGB(r, g, b float64)

func (*Context) SetRGB255

func (_febf *Context) SetRGB255(r, g, b int)

func (*Context) SetRGBA

func (_fb *Context) SetRGBA(r, g, b, a float64)

func (*Context) SetRGBA255

func (_bbf *Context) SetRGBA255(r, g, b, a int)

func (*Context) SetStrokeRGBA

func (_cbeb *Context) SetStrokeRGBA(r, g, b, a float64)

func (*Context) SetStrokeStyle

func (_bcc *Context) SetStrokeStyle(pattern _ae.Pattern)

func (*Context) Shear

func (_cedg *Context) Shear(x, y float64)

func (*Context) ShearAbout

func (_cgec *Context) ShearAbout(sx, sy, x, y float64)

func (*Context) Stroke

func (_gddb *Context) Stroke()

func (*Context) StrokePattern

func (_gdf *Context) StrokePattern() _ae.Pattern

func (*Context) StrokePreserve

func (_dbag *Context) StrokePreserve()

func (*Context) TextState

func (_faa *Context) TextState() *_ae.TextState

func (*Context) Transform

func (_bfab *Context) Transform(x, y float64) (_dbbe, _afc float64)

func (*Context) Translate

func (_afbg *Context) Translate(x, y float64)

func (*Context) Width

func (_ba *Context) Width() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL