Пример #1
0
// Converts pixels of the mask color to transparent pixels (with an alpha channel)
// for the given bitmap. Useful for, say "magic pink" backgrounds.
func (self *Bitmap) ConvertMaskToAlpha(mask_color Color) {
	C.al_convert_mask_to_alpha(self.handle, mask_color.toC())
}
Пример #2
0
func (b *Bitmap) ConvertMaskToAlpha(color Color) {

	C.al_convert_mask_to_alpha((*C.ALLEGRO_BITMAP)(b), (C.ALLEGRO_COLOR)(color))

}
Пример #3
0
func (b *Bitmap) ConvertMaskToAlpha(maskColor *Color) {
	C.al_convert_mask_to_alpha((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), (C.ALLEGRO_COLOR)(*maskColor))
}