pub fn from_image_2<I: ImageTrait<'a>>(image: &I, flags: ImageConversionFlags) -> Pixmap<'a> {
        let (obj_image_1, _funcs) = image.get_image_obj_funcs();
        let enum_flags_2 = flags.bits();

        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_pixmap)(::std::ptr::null()).all_funcs).pixmap_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).from_image_2)(obj_data, obj_image_1, enum_flags_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Pixmap::new_from_rc(t);
            } else {
                ret_val = Pixmap::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Create a QPixmap from an image read directly from an *imageReader.*
/// The *flags* argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)
///
/// Passing 0 for *flags* sets all the default options.
///
/// On some systems, reading an image directly to QPixmap can use less memory than
/// reading a QImage to convert it to QPixmap.
///
/// **See also:** [`from_image()`]
/// [`to_image()`]
/// {QPixmap#Pixmap Conversion}{Pixmap Conversion}
///
/// Converts the given *image* to a pixmap 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.
///
/// In case of monochrome and 8-bit images, the image is first
/// converted to a 32-bit pixmap and then filled with the colors in
/// the color table. If this is too expensive an operation, you can
/// use QBitmap::fromImage() instead.
///
/// **See also:** [`from_image_reader()`]
/// [`to_image()`]
/// {QPixmap#Pixmap Conversion}{Pixmap Conversion}
///
/// **Overloads**
/// Converts the given *image* to a pixmap without copying if possible.
///
/// Create a QPixmap from an image read directly from an *imageReader.*
/// The *flags* argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)
///
/// Passing 0 for *flags* sets all the default options.
///
/// On some systems, reading an image directly to QPixmap can use less memory than
/// reading a QImage to convert it to QPixmap.
///
/// **See also:** [`from_image()`]
/// [`to_image()`]
/// {QPixmap#Pixmap Conversion}{Pixmap Conversion}
Create a QPixmap from an image read directly from an *imageReader.
The *flags* argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)

Passing 0 for *flags* sets all the default options.

On some systems, reading an image directly to QPixmap can use less memory than
reading a QImage to convert it to QPixmap.



Converts the given *image* to a pixmap 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.

In case of monochrome and 8-bit images, the image is first
converted to a 32-bit pixmap and then filled with the colors in
the color table. If this is too expensive an operation, you can
use QBitmap::fromImage() instead.



Overloads
Converts the given *image* to a pixmap without copying if possible.

Create a QPixmap from an image read directly from an *imageReader.
The *flags* argument is a bitwise-OR of the [Qt::ImageConversionFlags](Qt::ImageConversionFlags)

Passing 0 for *flags* sets all the default options.

On some systems, reading an image directly to QPixmap can use less memory than
reading a QImage to convert it to QPixmap.


Create a QPixmap from an image read directly from an * imageReader . The * flags * argument is a bitwise - OR of the [ Qt :: ImageConversionFlags ] ( Qt :: ImageConversionFlags ) Passing 0 for * flags * sets all the default options . On some systems reading an image directly to QPixmap can use less memory than reading a QImage to convert it to QPixmap . Converts the given * image * to a pixmap 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 . In case of monochrome and 8 - bit images the image is first converted to a 32 - bit pixmap and then filled with the colors in the color table . If this is too expensive an operation you can use QBitmap :: fromImage () instead . Overloads Converts the given * image * to a pixmap without copying if possible . Create a QPixmap from an image read directly from an * imageReader . The * flags * argument is a bitwise - OR of the [ Qt :: ImageConversionFlags ] ( Qt :: ImageConversionFlags ) Passing 0 for * flags * sets all the default options . On some systems reading an image directly to QPixmap can use less memory than reading a QImage to convert it to QPixmap .
pub fn from_image_2<I: ImageTrait<'a>>(image: &I, flags: ImageConversionFlags) -> Pixmap<'a> {
        let (obj_image_1, _funcs) = image.get_image_obj_funcs();
        let enum_flags_2 = flags.bits();
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_pixmap)(::std::ptr::null()).all_funcs).pixmap_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).from_image_2)(obj_data, obj_image_1, enum_flags_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Pixmap::new_from_rc(t);
            } else {
                ret_val = Pixmap::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn from_image_2 < I : ImageTrait < ' a > > ( image : & I , flags : ImageConversionFlags ) -> Pixmap < ' a > { let ( obj_image_1 , _funcs ) = image . get_image_obj_funcs ( ) ; let enum_flags_2 = flags . bits ( ) ; let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_pixmap ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . pixmap_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . from_image_2 ) ( obj_data , obj_image_1 , enum_flags_2 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Pixmap :: new_from_rc ( t ) ; } else { ret_val = Pixmap :: new_from_owned ( t ) ; } ret_val } }
Create a QPixmap from an image read directly from an *imageReader.
Create a QPixmap from an image read directly from an * imageReader .
image
&I
flags
ImageConversionFlags
image
&I
flags
ImageConversionFlags