예제 #1
0
파일: gdkpixbuf.go 프로젝트: hauke96/go-gtk
func (p *Pixbuf) GetPixels() []byte {
	ptr := C.gdk_pixbuf_get_pixels(
		p.GPixbuf,
	)
	return (*[1 << 30]byte)(unsafe.Pointer(ptr))[:]
}
예제 #2
0
/*
Queries a pointer to the pixel data of a pixbuf.
*/
func (self *TraitPixbuf) GetPixels() (return__ *C.guchar) {
	return__ = C.gdk_pixbuf_get_pixels(self.CPointer)
	return
}