package
0.0.0-20170609003504-e2365dfdc4a0
Repository: https://github.com/golang/freetype.git
Documentation: pkg.go.dev
# Functions
NewAlphaOverPainter creates a new AlphaOverPainter for the given image.
NewAlphaSrcPainter creates a new AlphaSrcPainter for the given image.
NewGammaCorrectionPainter creates a new GammaCorrectionPainter that wraps the given Painter.
NewMonochromePainter creates a new MonochromePainter that wraps the given Painter.
NewRasterizer creates a new Rasterizer with the given bounds.
NewRGBAPainter creates a new RGBAPainter for the given image.
Stroke adds q stroked with the given width to p.
# Variables
BevelJoiner adds bevel joins to a stroked path.
ButtCapper adds butt caps to a stroked path.
RoundCapper adds round caps to a stroked path.
RoundJoiner adds round joins to a stroked path.
SquareCapper adds square caps to a stroked path.
# Structs
An AlphaOverPainter is a Painter that paints Spans onto a *image.Alpha using the Over Porter-Duff composition operator.
An AlphaSrcPainter is a Painter that paints Spans onto a *image.Alpha using the Src Porter-Duff composition operator.
A GammaCorrectionPainter wraps another Painter, performing gamma-correction on each Span's alpha value.
A MonochromePainter wraps another Painter, quantizing each Span's alpha to be either fully opaque or fully transparent.
No description provided by the author
An RGBAPainter is a Painter that paints Spans onto a *image.RGBA.
A Span is a horizontal segment of pixels with constant alpha.
# Type aliases
The CapperFunc type adapts an ordinary function to be a Capper.
The JoinerFunc type adapts an ordinary function to be a Joiner.
The PainterFunc type adapts an ordinary function to the Painter interface.
A Path is a sequence of curves, and a curve is a start point followed by a sequence of linear, quadratic or cubic segments.