Documentation
¶
Index ¶
- type Context
- func (c *Context) BeginPath()
- func (c *Context) Close()
- func (c *Context) ClosePath()
- func (c *Context) DrawToJPG(file string, format string)
- func (c *Context) Fill()
- func (c *Context) GetHeight() float64
- func (c *Context) GetWidth() float64
- func (c *Context) LineTo(x, y float64)
- func (c *Context) MoveTo(x, y float64)
- func (c *Context) Rect(x, y, width, height float64)
- func (c *Context) SetSourceRGB(r, g, b float64)
- func (c *Context) ShowText(utf8 string)
- func (c *Context) ToPixbuf() *Pixbuf
- func (c *Context) WriteToPNG(fileName string)
- type Display
- type Gamma
- type Pixbuf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func CreateImageContext ¶
func CreateImageContext(f C.cairo_format_t, width, height float64) *Context
func CreatePDFContext ¶
CreatePDFContext : CGCreatePDFContext
func CreatePSContext ¶
func (*Context) SetSourceRGB ¶
func (*Context) WriteToPNG ¶
TODO(Happy-Ferret): Deprecate and merge into generic "ToFile" method.
Click to show internal directories.
Click to hide internal directories.