Based on Dethe Elza's version https://bitbucket.org/dethe/gocairo but significantly extended and updated.
Go specific extensions:
- NewSurfaceFromImage(image.Image)
- Surface.GetData() []byte
- Surface.SetData([]byte)
- Surface.GetImage() image.Image
- Surface.SetImage(image.Image)
go-cairo also sports a sub package extimage with image.Image/draw.Image implementations for 32 bit ARGB and 24 bit RGB color models.
Overview:
- http://go.pkgdoc.org/github.com/Joker/go-cairo
- http://go.pkgdoc.org/github.com/ungerik/go-cairo/extimage
Missing features
- FontFace
- FontOptions
- ScaledFont
For Gentoo:
emerge x11-libs/cairo
For Debian and Debian derivatives including Ubuntu:
sudo apt-get install libcairo2-dev
For Fedora:
sudo yum install cairo-devel
For openSUSE:
zypper install cairo-devel
Copyrights: See LICENSE file