pub fn create_mask_from_color<C: ColorTrait<'a>>(
        &self,
        mask_color: &C,
        mode: MaskMode,
    ) -> Bitmap {
        let (obj_mask_color_1, _funcs) = mask_color.get_color_obj_funcs();
        let enum_mode_2 = mode as u32;

        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val =
                ((*funcs).create_mask_from_color)(obj_data, obj_mask_color_1, enum_mode_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Bitmap::new_from_rc(t);
            } else {
                ret_val = Bitmap::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Creates and returns a mask for this pixmap based on the given *maskColor.* If the *mode* is Qt::MaskInColor, all pixels matching the
/// maskColor will be transparent. If *mode* is Qt::MaskOutColor, all pixels
/// matching the maskColor will be opaque.
///
/// This function is slow because it involves converting to/from a
/// QImage.
///
/// **See also:** [`create_heuristic_mask()`]
/// [`Image::create_mask_from_color`]
Creates and returns a mask for this pixmap based on the given *maskColor.* If the *mode* is Qt::MaskInColor, all pixels matching the
maskColor will be transparent. If *mode* is Qt::MaskOutColor, all pixels
matching the maskColor will be opaque.

This function is slow because it involves converting to/from a
QImage.


Creates and returns a mask for this pixmap based on the given * maskColor . * If the * mode * is Qt :: MaskInColor all pixels matching the maskColor will be transparent . If * mode * is Qt :: MaskOutColor all pixels matching the maskColor will be opaque . This function is slow because it involves converting to / from a QImage .
pub fn create_mask_from_color<C: ColorTrait<'a>>(
        &self,
        mask_color: &C,
        mode: MaskMode,
    ) -> Bitmap {
        let (obj_mask_color_1, _funcs) = mask_color.get_color_obj_funcs();
        let enum_mode_2 = mode as u32;
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val =
                ((*funcs).create_mask_from_color)(obj_data, obj_mask_color_1, enum_mode_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Bitmap::new_from_rc(t);
            } else {
                ret_val = Bitmap::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn create_mask_from_color < C : ColorTrait < ' a > > ( & self , mask_color : & C , mode : MaskMode , ) -> Bitmap { let ( obj_mask_color_1 , _funcs ) = mask_color . get_color_obj_funcs ( ) ; let enum_mode_2 = mode as u32 ; let ( obj_data , funcs ) = self . get_pixmap_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . create_mask_from_color ) ( obj_data , obj_mask_color_1 , enum_mode_2 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Bitmap :: new_from_rc ( t ) ; } else { ret_val = Bitmap :: new_from_owned ( t ) ; } ret_val } }
Creates and returns a mask for this pixmap based on the given *maskColor.
Creates and returns a mask for this pixmap based on the given * maskColor .
&self
mask_color
&C
mode
MaskMode
&self
mask_color
&C
mode
MaskMode