///
/// Creates and returns a 1-bpp heuristic mask for this image.
///
/// The function works by selecting a color from one of the corners,
/// then chipping away pixels of that color starting at all the edges.
/// The four corners vote for which color is to be masked away. In
/// case of a draw (this generally means that this function is not
/// applicable to the image), the result is arbitrary.
///
/// The returned image has little-endian bit order (i.e. the image's
/// format is QImage::Format_MonoLSB), which you can convert to
/// big-endian (QImage::Format_Mono) using the convertToFormat()
/// function.
///
/// If *clipTight* is true (the default) the mask is just large
/// enough to cover the pixels; otherwise, the mask is larger than the
/// data pixels.
///
/// Note that this function disregards the alpha buffer.
///
/// **See also:** [`create_alpha_mask()`]
/// {QImage#Image Transformations}{Image
/// Transformations}
Creates and returns a 1-bpp heuristic mask for this image.
The function works by selecting a color from one of the corners,
then chipping away pixels of that color starting at all the edges.
The four corners vote for which color is to be masked away. In
case of a draw (this generally means that this function is not
applicable to the image), the result is arbitrary.

The returned image has little-endian bit order , which you can convert to
big-endian (QImage::Format_Mono) using the convertToFormat()
function.

If *clipTight* is true (the default) the mask is just large
enough to cover the pixels; otherwise, the mask is larger than the
data pixels.

Note that this function disregards the alpha buffer.


Creates and returns a 1 - bpp heuristic mask for this image . The function works by selecting a color from one of the corners then chipping away pixels of that color starting at all the edges . The four corners vote for which color is to be masked away . In case of a draw ( this generally means that this function is not applicable to the image ) the result is arbitrary . The returned image has little - endian bit order which you can convert to big - endian ( QImage :: Format_Mono ) using the convertToFormat () function . If * clipTight * is true ( the default ) the mask is just large enough to cover the pixels ; otherwise the mask is larger than the data pixels . Note that this function disregards the alpha buffer .
pub fn create_heuristic_mask(&self, clip_tight: bool) -> Image {
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).create_heuristic_mask)(obj_data, clip_tight);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Image::new_from_rc(t);
            } else {
                ret_val = Image::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn create_heuristic_mask ( & self , clip_tight : bool ) -> Image { let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . create_heuristic_mask ) ( obj_data , clip_tight ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Image :: new_from_rc ( t ) ; } else { ret_val = Image :: new_from_owned ( t ) ; } ret_val } }
Creates and returns a 1-bpp heuristic mask for this image.
Creates and returns a 1 - bpp heuristic mask for this image .
&self
clip_tight
bool