Documentation
¶
Overview ¶
vgimg implements the vg.Canvas interface using draw2d (code.google.com/p/draw2d/draw2d) as a backend to output raster images.
Index ¶
- type Canvas
- func (c *Canvas) DPI() float64
- func (c *Canvas) Fill(p vg.Path)
- func (c *Canvas) FillString(font vg.Font, x, y vg.Length, str string)
- func (c *Canvas) Pop()
- func (c *Canvas) Push()
- func (c *Canvas) Rotate(t float64)
- func (c *Canvas) Scale(x, y float64)
- func (c *Canvas) SetColor(clr color.Color)
- func (c *Canvas) SetLineDash(ds []vg.Length, offs vg.Length)
- func (c *Canvas) SetLineWidth(w vg.Length)
- func (c *Canvas) Size() (w, h vg.Length)
- func (c *Canvas) Stroke(p vg.Path)
- func (c *Canvas) Translate(x, y vg.Length)
- type JpegCanvas
- type PngCanvas
- type TiffCanvas
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas implements the vg.Canvas interface, drawing to an image.Image using draw2d.
func NewImage ¶
NewImage returns a new image canvas that draws to the given image. The minimum point of the given image should probably be 0,0.
func (*Canvas) SetLineWidth ¶
type JpegCanvas ¶
type JpegCanvas struct {
*Canvas
}
A JpegCanvas is an image canvas with a WriteTo method that writes a jpeg image.
type PngCanvas ¶
type PngCanvas struct {
*Canvas
}
A PngCanvas is an image canvas with a WriteTo method that writes a png image.
type TiffCanvas ¶
type TiffCanvas struct {
*Canvas
}
A TiffCanvas is an image canvas with a WriteTo method that writes a tiff image.
Click to show internal directories.
Click to hide internal directories.