Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rasterizer ¶
type Rasterizer struct { vector.Rasterizer // Dst is the image that the Draw call uses as destination to draw into. Dst draw.Image // DrawOp is a Porter-Duff compositing operator that will be used for the // next call to the Draw method. After that call finishes, DrawOp is set to // draw.Over. DrawOp draw.Op }
Rasterizer that wraps an inner "golang.org/x/image/vector" Rasterizer. The dst image normally passed to a call Draw is set as a field so Draw does not have to take it as a parameter.
func NewRasterizer ¶
func NewRasterizer(dst draw.Image) *Rasterizer
NewRasterizer returns a rasterizer for dst image, with the dst size used to reset the inner rasterizer.
Click to show internal directories.
Click to hide internal directories.