///
/// 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.
///
/// Changes the format of the image to *format* without changing the
/// data. Only works between formats of the same depth.
///
/// Returns `true` if successful.
///
/// This function can be used to change images with alpha-channels to
/// their corresponding opaque formats if the data is known to be opaque-only,
/// or to change the format of a given image buffer before overwriting
/// it with new data.
///
/// **Warning**: The function does not check if the image data is valid in the
/// new format and will still return `true` if the depths are compatible.
/// Operations on an image with invalid data are undefined.
///
/// **Warning**: If the image is not detached, this will cause the data to be
/// copied.
///
/// **See also:** [`has_alpha_channel()`]
/// [`convert_to_format()`]
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.

Changes the format of the image to *format* without changing the
data. Only works between formats of the same depth.

Returns `true` if successful.

This function can be used to change images with alpha-channels to
their corresponding opaque formats if the data is known to be opaque-only,
or to change the format of a given image buffer before overwriting
it with new data.

Warning**: The function does not check if the image data is valid in the
new format and will still return `true` if the depths are compatible.
Operations on an image with invalid data are undefined.

Warning**: If the image is not detached, this will cause the data to be
copied.


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 . Changes the format of the image to * format * without changing the data . Only works between formats of the same depth . Returns ` true ` if successful . This function can be used to change images with alpha - channels to their corresponding opaque formats if the data is known to be opaque - only or to change the format of a given image buffer before overwriting it with new data . Warning ** : The function does not check if the image data is valid in the new format and will still return ` true ` if the depths are compatible . Operations on an image with invalid data are undefined . Warning ** : If the image is not detached this will cause the data to be copied .
pub fn reinterpret_as_format(&self, f: Format) -> bool {
        let enum_f_1 = f as u32;
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).reinterpret_as_format)(obj_data, enum_f_1);
            ret_val
        }
    }
pub fn reinterpret_as_format ( & self , f : Format ) -> bool { let enum_f_1 = f as u32 ; let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . reinterpret_as_format ) ( obj_data , enum_f_1 ) ; 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