コード例 #1
0
ファイル: recorder.go プロジェクト: sksullivan/plot
// NewFrom returns a new Canvas from an existing vg.Canvas. vg.Canvas methods
// called on the Canvas will also be passed to the provided backing
// vg.Canvas. The Resolution field is set to the value returned by c.DPI.
func NewFrom(c vg.Canvas) *Canvas { return &Canvas{Resolution: c.DPI(), c: c} }
コード例 #2
0
ファイル: recorder.go プロジェクト: sksullivan/plot
// ApplyTo applies the action to the given vg.Canvas.
func (a *DPI) ApplyTo(c vg.Canvas) {
	c.DPI()
}