Beispiel #1
0
// 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} }
Beispiel #2
0
// ApplyTo applies the action to the given vg.Canvas.
func (a *DPI) ApplyTo(c vg.Canvas) {
	c.DPI()
}