// 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()) }
func (b *Bitmap) ConvertMaskToAlpha(color Color) { C.al_convert_mask_to_alpha((*C.ALLEGRO_BITMAP)(b), (C.ALLEGRO_COLOR)(color)) }
func (b *Bitmap) ConvertMaskToAlpha(maskColor *Color) { C.al_convert_mask_to_alpha((*C.ALLEGRO_BITMAP)(unsafe.Pointer(b)), (C.ALLEGRO_COLOR)(*maskColor)) }