///
/// Returns a copy of the given *image* converted to a bitmap using
/// the specified image conversion *flags.*
///
/// **See also:** [`from_data()`]
Returns a copy of the given *image* converted to a bitmap using
the specified image conversion *flags.


Returns a copy of the given * image * converted to a bitmap using the specified image conversion * flags .
pub fn from_image<I: ImageTrait<'a>>(image: &I, flags: ImageConversionFlags) -> Bitmap<'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_bitmap)(::std::ptr::null()).all_funcs).bitmap_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).from_image)(obj_data, obj_image_1, enum_flags_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Bitmap::new_from_rc(t);
            } else {
                ret_val = Bitmap::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn from_image < I : ImageTrait < ' a > > ( image : & I , flags : ImageConversionFlags ) -> Bitmap < ' 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_bitmap ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . bitmap_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . from_image ) ( obj_data , obj_image_1 , enum_flags_2 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Bitmap :: new_from_rc ( t ) ; } else { ret_val = Bitmap :: new_from_owned ( t ) ; } ret_val } }
Returns a copy of the given *image* converted to a bitmap using
the specified image conversion *flags.
Returns a copy of the given * image * converted to a bitmap using the specified image conversion * flags .
image
&I
flags
ImageConversionFlags