///
/// Returns a copy of the image in the given *format.*
///
/// The specified image conversion *flags* control how the image data
/// is handled during the conversion process.
///
/// **See also:** {Image Formats}
///
/// **Overloads**
/// Returns a copy of the image converted to the given *format,*
/// using the specified *colorTable.*
///
/// Conversion from RGB formats to indexed formats is a slow operation
/// and will use a straightforward nearest color approach, with no
/// dithering.
Returns a copy of the image in the given *format.
The specified image conversion *flags* control how the image data
is handled during the conversion process.

See also:** {Image Formats}

Overloads
Returns a copy of the image converted to the given *format,
using the specified *colorTable.

Conversion from RGB formats to indexed formats is a slow operation
and will use a straightforward nearest color approach, with no
dithering.
Returns a copy of the image in the given * format . The specified image conversion * flags * control how the image data is handled during the conversion process . See also : ** { Image Formats } Overloads Returns a copy of the image converted to the given * format using the specified * colorTable . Conversion from RGB formats to indexed formats is a slow operation and will use a straightforward nearest color approach with no dithering .
pub fn convert_to_format(&self, f: Format, flags: ImageConversionFlags) -> Image {
        let enum_f_1 = f as u32;
        let enum_flags_2 = flags.bits();
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).convert_to_format)(obj_data, enum_f_1, enum_flags_2);
            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 convert_to_format ( & self , f : Format , flags : ImageConversionFlags ) -> Image { let enum_f_1 = f as u32 ; let enum_flags_2 = flags . bits ( ) ; let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . convert_to_format ) ( obj_data , enum_f_1 , enum_flags_2 ) ; 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 } }
Returns a copy of the image in the given *format.
Returns a copy of the image in the given * format .
&self
f
Format
flags
ImageConversionFlags