Example #1
0
func (b *Bitmap) GetPixel(x, y int) Color {
	var c Color

	c = (Color)(C.al_get_pixel((*C.ALLEGRO_BITMAP)(b), C.int(x), C.int(y)))

	return c
}
Example #2
0
// Gets a pixel from the bitmap
func (self *Bitmap) GetPixel(x, y int) (color Color) {
	return wrapColor(C.al_get_pixel(self.handle, C.int(x), C.int(y)))
}
Example #3
0
func (b *Bitmap) GetPixel(x, y int32) Color {
	return (Color)(C.al_get_pixel((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), C.int(x), C.int(y)))
}