///
/// Replaces this pixmap's data with the given *image* using the
/// specified *flags* to control the conversion. The *flags*
/// argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)
///
/// Passing 0 for *flags* sets all the default options. Returns `true`
/// if the result is that this pixmap is not null.
///
/// Note: this function was part of Qt 3 support in Qt 4.6 and earlier.
/// It has been promoted to official API status in 4.7 to support updating
/// the pixmap's image without creating a new QPixmap as fromImage() would.
///
/// **See also:** [`from_image()`]
Replaces this pixmap's data with the given *image* using the
specified *flags* to control the conversion. The *flags
argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)

Passing 0 for *flags* sets all the default options. Returns `true`
if the result is that this pixmap is not null.

this function was part of Qt 3 support in Qt 4.6 and earlier.
It has been promoted to official API status in 4.7 to support updating
the pixmap's image without creating a new QPixmap as fromImage() would.


Replaces this pixmap ' s data with the given * image * using the specified * flags * to control the conversion . The * flags argument is a bitwise - OR of the [ Qt :: ImageConversionFlags ] ( Qt :: ImageConversionFlags ) Passing 0 for * flags * sets all the default options . Returns ` true ` if the result is that this pixmap is not null . this function was part of Qt 3 support in Qt 4 . 6 and earlier . It has been promoted to official API status in 4 . 7 to support updating the pixmap ' s image without creating a new QPixmap as fromImage () would .
pub fn convert_from_image<I: ImageTrait<'a>>(
        &self,
        img: &I,
        flags: ImageConversionFlags,
    ) -> bool {
        let (obj_img_1, _funcs) = img.get_image_obj_funcs();
        let enum_flags_2 = flags.bits();
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).convert_from_image)(obj_data, obj_img_1, enum_flags_2);
            ret_val
        }
    }
pub fn convert_from_image < I : ImageTrait < ' a > > ( & self , img : & I , flags : ImageConversionFlags , ) -> bool { let ( obj_img_1 , _funcs ) = img . get_image_obj_funcs ( ) ; let enum_flags_2 = flags . bits ( ) ; let ( obj_data , funcs ) = self . get_pixmap_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . convert_from_image ) ( obj_data , obj_img_1 , enum_flags_2 ) ; ret_val } }
Replaces this pixmap's data with the given *image* using the
specified *flags* to control the conversion.
Replaces this pixmap ' s data with the given * image * using the specified * flags * to control the conversion .
&self
img
&I
flags
ImageConversionFlags