Exemple #1
0
// Sets the fill color for enclosed areas on the current drawing surface.
func (cv Canvas) SetFillColor(color string) {
	C.PixelSetColor(cv.fill, C.CString(color))
	C.DrawSetFillColor(cv.drawing, cv.fill)
}
Exemple #2
0
// Sets the fill color for enclosed areas on the current drawing surface.
func (self Canvas) SetFillColor(color string) {
	C.PixelSetColor(self.fill, C.CString(color))
	C.DrawSetFillColor(self.drawing, self.fill)
}
Exemple #3
0
// Sets the fill color for enclosed areas on the current drawing surface.
func (self *Canvas) SetFillColor(color string) {
	ccolor := C.CString(color)
	C.PixelSetColor(self.fill, ccolor)
	C.free(unsafe.Pointer(ccolor))
	C.DrawSetFillColor(self.drawing, self.fill)
}
Exemple #4
0
// Sets the fill color to be used for drawing filled objects.
func (dw *DrawingWand) SetFillColor(fillWand *PixelWand) {
	C.DrawSetFillColor(dw.dw, fillWand.pw)
}