示例#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)
}
示例#2
0
文件: canvas.go 项目: jmrobles/canvas
// 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)
}
示例#3
0
文件: canvas.go 项目: phacops/canvas
// 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)
}
示例#4
0
// Sets the color used for stroking object outlines.
func (dw *DrawingWand) SetStrokeColor(strokeWand *PixelWand) {
	C.DrawSetStrokeColor(dw.dw, strokeWand.pw)
}