pub fn to_image(&self) -> Image {
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).to_image)(obj_data);
            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
        }
    }
///
/// Converts the pixmap to a QImage. Returns a null image if the
/// conversion fails.
///
/// If the pixmap has 1-bit depth, the returned image will also be 1
/// bit deep. Images with more bits will be returned in a format
/// closely represents the underlying system. Usually this will be
/// QImage::Format_ARGB32_Premultiplied for pixmaps with an alpha and
/// QImage::Format_RGB32 or QImage::Format_RGB16 for pixmaps without
/// alpha.
///
/// Note that for the moment, alpha masks on monochrome images are
/// ignored.
///
/// **See also:** [`from_image()`]
/// {QImage#Image Formats}{Image Formats}
Converts the pixmap to a QImage. Returns a null image if the
conversion fails.

If the pixmap has 1-bit depth, the returned image will also be 1
bit deep. Images with more bits will be returned in a format
closely represents the underlying system.

Note that for the moment, alpha masks on monochrome images are
ignored.


Converts the pixmap to a QImage . Returns a null image if the conversion fails . If the pixmap has 1 - bit depth the returned image will also be 1 bit deep . Images with more bits will be returned in a format closely represents the underlying system . Note that for the moment alpha masks on monochrome images are ignored .
pub fn to_image(&self) -> Image {
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).to_image)(obj_data);
            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 to_image ( & self ) -> Image { let ( obj_data , funcs ) = self . get_pixmap_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . to_image ) ( obj_data ) ; 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 } }
Converts the pixmap to a QImage.
Converts the pixmap to a QImage .
&self
&self