Ejemplo n.º 1
0
// Sets the stroke color on the current drawing surface.
func (cv Canvas) SetStrokeColor(color string) {
	C.PixelSetColor(cv.stroke, C.CString(color))
	C.DrawSetStrokeColor(cv.drawing, cv.stroke)
}
Ejemplo n.º 2
0
// Sets the stroke color on the current drawing surface.
func (self Canvas) SetStrokeColor(color string) {
	C.PixelSetColor(self.stroke, C.CString(color))
	C.DrawSetStrokeColor(self.drawing, self.stroke)
}
Ejemplo n.º 3
0
// Sets the stroke color on the current drawing surface.
func (self *Canvas) SetStrokeColor(color string) {
	ccolor := C.CString(color)
	C.PixelSetColor(self.stroke, ccolor)
	C.free(unsafe.Pointer(ccolor))
	C.DrawSetStrokeColor(self.drawing, self.stroke)
}
Ejemplo n.º 4
0
// Sets the color used for stroking object outlines.
func (dw *DrawingWand) SetStrokeColor(strokeWand *PixelWand) {
	C.DrawSetStrokeColor(dw.dw, strokeWand.pw)
}