示例#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
}
示例#2
0
文件: bitmap.go 项目: beoran/algo
// 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)))
}
示例#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)))
}