Esempio n. 1
0
File: gd.go Progetto: trajber/go-gd
/* NB: unable to import gdImageEllipse. Something wrong in CGO I think:

Undefined symbols:
  "_gdImageEllipse", referenced from:
        __cgo_6af175c8cf06_Cfunc_gdImageEllipse in gd.cgo2.o
             (maybe you meant: __cgo_6af175c8cf06_Cfunc_gdImageEllipse)
ld: symbol(s) not found
collect2: ld returned 1 exit status
*/
func (p *Image) Ellipse(cx, cy, w, h int, color Color) {
	C.gdImageArc(p.img, C.int(cx), C.int(cy), C.int(w), C.int(h), 360, 360, C.int(color))
}
Esempio n. 2
0
File: gd.go Progetto: trajber/go-gd
func (p *Image) Arc(cx, cy, w, h, s, e int, color Color) {
	C.gdImageArc(p.img, C.int(cx), C.int(cy), C.int(w), C.int(h),
		C.int(s), C.int(e), C.int(color))
}