示例#1
0
文件: canvas.go 项目: phacops/canvas
// Draws a circle over the current drawing surface.
func (self *Canvas) Circle(radius float64) {
	C.DrawCircle(self.drawing, C.double(0), C.double(0), C.double(radius), C.double(0))
}
示例#2
0
// Draws a circle over the current drawing surface.
func (cv Canvas) Circle(radius float64) {
	C.DrawCircle(cv.drawing, C.double(0), C.double(0), C.double(radius), C.double(0))
}
示例#3
0
// Draws a circle on the image.
//
// ox: origin x ordinate
//
// oy: origin y ordinate
//
// px: perimeter x ordinate
//
// py: perimeter y ordinate
//
func (dw *DrawingWand) Circle(ox, oy, px, py float64) {
	C.DrawCircle(dw.dw, C.double(ox), C.double(oy), C.double(px), C.double(py))
}