Exemple #1
0
func (p *Pixbuf) GetPixels() []byte {
	ptr := C.gdk_pixbuf_get_pixels(
		p.GPixbuf,
	)
	return (*[1 << 30]byte)(unsafe.Pointer(ptr))[:]
}
Exemple #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
}