예제 #1
0
파일: canvas.go 프로젝트: mishudark/gosexy
// 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)
}