示例#1
0
文件: gc.go 项目: zzn01/draw2d
func (gc *GraphicContext) paint(rasterizer *raster.Rasterizer, color color.Color) {
	gc.painter.SetColor(color)
	rasterizer.Rasterize(gc.painter)
	rasterizer.Clear()
	gc.painter.Flush()
	gc.Current.Path.Clear()
}
示例#2
0
文件: raster.go 项目: zenoss/rog-go
func rasterBbox(rasterizer *raster.Rasterizer) (r image.Rectangle) {
	var bbox bboxPainter
	rasterizer.Rasterize(&bbox)
	return bbox.R
}