Пример #1
0
// Returns the color of the pixel wand as a string
func (pw *PixelWand) GetColorAsString() string {
	return C.GoString(C.PixelGetColorAsString(pw.pw))
}
Пример #2
0
// Returns the color of the pixel wand as a string
func (pw *PixelWand) GetColorAsString() string {
	p := C.PixelGetColorAsString(pw.pw)
	defer relinquishMemory(unsafe.Pointer(p))
	return C.GoString(p)
}