///
/// Builds and returns a 1-bpp mask from the alpha buffer in this
/// image. Returns a null image if the image's format is
/// QImage::Format_RGB32.
///
/// The *flags* argument is a bitwise-OR of the
/// Qt::ImageConversionFlags, and controls the conversion
/// process. Passing 0 for flags sets all the default options.
///
/// 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.
///
/// **See also:** [`create_heuristic_mask()`]
/// {QImage#Image Transformations}{Image
/// Transformations}
Builds and returns a 1-bpp mask from the alpha buffer in this
image. Returns a null image if the image's format is
QImage::Format_RGB32.

The *flags* argument is a bitwise-OR of the
Qt::ImageConversionFlags, and controls the conversion
process. Passing 0 for flags sets all the default options.

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


Builds and returns a 1 - bpp mask from the alpha buffer in this image . Returns a null image if the image ' s format is QImage :: Format_RGB32 . The * flags * argument is a bitwise - OR of the Qt :: ImageConversionFlags and controls the conversion process . Passing 0 for flags sets all the default options . The returned image has little - endian bit order which you can convert to big - endian ( QImage :: Format_Mono ) using the convertToFormat () function .
pub fn create_alpha_mask(&self, flags: ImageConversionFlags) -> Image {
        let enum_flags_1 = flags.bits();
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).create_alpha_mask)(obj_data, enum_flags_1);
            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_alpha_mask ( & self , flags : ImageConversionFlags ) -> Image { let enum_flags_1 = flags . bits ( ) ; let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . create_alpha_mask ) ( obj_data , enum_flags_1 ) ; 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 } }
Builds and returns a 1-bpp mask from the alpha buffer in this
image.
Builds and returns a 1 - bpp mask from the alpha buffer in this image .
&self
flags
ImageConversionFlags