Ejemplo n.º 1
0
// Draws a rectangle over the current drawing surface.
func (self *Canvas) Rectangle(x float64, y float64) {
	C.DrawRectangle(self.drawing, C.double(0), C.double(0), C.double(x), C.double(y))
}
Ejemplo n.º 2
0
// Draws a rectangle over the current drawing surface.
func (cv Canvas) Rectangle(x float64, y float64) {
	C.DrawRectangle(cv.drawing, C.double(0), C.double(0), C.double(x), C.double(y))
}
Ejemplo n.º 3
0
// Draws a rectangle given two coordinates and using the current stroke, stroke
// width, and fill settings.
//
// x1, y1: ordinates of first coordinate
//
// x2, y2: ordinates of second coordinate
func (dw *DrawingWand) Rectangle(x1, y1, x2, y2 float64) {
	C.DrawRectangle(dw.dw, C.double(x1), C.double(y1), C.double(x2), C.double(y2))
}