pub fn scaled_to_width(&self, w: i32, mode: TransformationMode) -> Image {
        let enum_mode_2 = mode as u32;

        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled_to_width)(obj_data, w, enum_mode_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 scaled copy of the image. The returned image is scaled
/// to the given *width* using the specified transformation *mode.*
///
/// This function automatically calculates the height of the image so
/// that its aspect ratio is preserved.
///
/// If the given *width* is 0 or negative, a null image is returned.
///
/// **See also:** {QImage#Image Transformations}{Image Transformations}
Returns a scaled copy of the image. The returned image is scaled
to the given *width* using the specified transformation *mode.

This function automatically calculates the height of the image so
that its aspect ratio is preserved.

If the given *width* is 0 or negative, a null image is returned.

See also:** {QImage#Image Transformations}{Image Transformations}
Returns a scaled copy of the image . The returned image is scaled to the given * width * using the specified transformation * mode . This function automatically calculates the height of the image so that its aspect ratio is preserved . If the given * width * is 0 or negative a null image is returned . See also : ** { QImage#Image Transformations } { Image Transformations }
pub fn scaled_to_width(&self, w: i32, mode: TransformationMode) -> Image {
        let enum_mode_2 = mode as u32;
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled_to_width)(obj_data, w, enum_mode_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 scaled_to_width ( & self , w : i32 , mode : TransformationMode ) -> Image { let enum_mode_2 = mode as u32 ; let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scaled_to_width ) ( obj_data , w , enum_mode_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 scaled copy of the image.
Returns a scaled copy of the image .
&self
w
i32
mode
TransformationMode
&self
w
i32
mode
TransformationMode