///
/// Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode
/// transformMode) const
///
/// **Overloads**
/// Returns a copy of the pixmap scaled to a rectangle with the given
/// *width* and *height* according to the given *aspectRatioMode* and
/// *transformMode.*
///
/// If either the *width* or the *height* is zero or negative, this
/// function returns a null pixmap.
///
/// aspectRatioMode, Qt::TransformationMode transformMode) const
///
/// Scales the pixmap to the given *size,* using the aspect ratio and
/// transformation modes specified by *aspectRatioMode* and *transformMode.*
///
/// ![qimage-scaling.png](qimage-scaling.png)
///
/// * If *aspectRatioMode* is Qt::IgnoreAspectRatio, the pixmap is scaled to *size.*
/// * If *aspectRatioMode* is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside *size,* preserving the aspect ratio.
/// * If *aspectRatioMode* is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside *size,* preserving the aspect ratio.
///
/// If the given *size* is empty, this function returns a null
/// pixmap.
///
/// In some cases it can be more beneficial to draw the pixmap to a
/// painter with a scale set rather than scaling the pixmap. This is
/// the case when the painter is for instance based on OpenGL or when
/// the scale factor changes rapidly.
///
/// **See also:** [`is_null()`]
/// {QPixmap#Pixmap Transformations}{Pixmap
/// Transformations}
///
///
/// mode) const
///
/// Returns a scaled copy of the image. The returned image is scaled
/// to the given *width* using the specified transformation *mode.*
/// The height of the pixmap is automatically calculated so that the
/// aspect ratio of the pixmap is preserved.
///
/// If *width* is 0 or negative, a null pixmap is returned.
///
/// **See also:** [`is_null()`]
/// {QPixmap#Pixmap Transformations}{Pixmap
/// Transformations}
///
/// Qt::TransformationMode mode) const
///
/// Returns a scaled copy of the image. The returned image is scaled
/// to the given *height* using the specified transformation *mode.*
/// The width of the pixmap is automatically calculated so that the
/// aspect ratio of the pixmap is preserved.
///
/// If *height* is 0 or negative, a null pixmap is returned.
///
/// **See also:** [`is_null()`]
/// {QPixmap#Pixmap Transformations}{Pixmap
/// Transformations}




If either the *width* or the *height* is zero or negative, this
function returns a null pixmap.







If *aspectRatioMode* is Qt::IgnoreAspectRatio, the pixmap is scaled to *size.
If *aspectRatioMode* is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside *size,* preserving the aspect ratio.
If *aspectRatioMode* is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside *size,* preserving the aspect ratio.

If the given *size* is empty, this function returns a null
pixmap.

In some cases it can be more beneficial to draw the pixmap to a
painter with a scale set rather than scaling the pixmap. This is
the case when the painter is for instance based on OpenGL or when
the scale factor changes rapidly.



mode) const

Returns a scaled copy of the image. The returned image is scaled
to the given *width* using the specified transformation *mode.
The height of the pixmap is automatically calculated so that the
aspect ratio of the pixmap is preserved.

If *width* is 0 or negative, a null pixmap is returned.





Returns a scaled copy of the image. The returned image is scaled
to the given *height* using the specified transformation *mode.
The width of the pixmap is automatically calculated so that the
aspect ratio of the pixmap is preserved.

If *height* is 0 or negative, a null pixmap is returned.


If either the * width * or the * height * is zero or negative this function returns a null pixmap . If * aspectRatioMode * is Qt :: IgnoreAspectRatio the pixmap is scaled to * size . If * aspectRatioMode * is Qt :: KeepAspectRatio the pixmap is scaled to a rectangle as large as possible inside * size * preserving the aspect ratio . If * aspectRatioMode * is Qt :: KeepAspectRatioByExpanding the pixmap is scaled to a rectangle as small as possible outside * size * preserving the aspect ratio . If the given * size * is empty this function returns a null pixmap . In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap . This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly . mode ) const Returns a scaled copy of the image . The returned image is scaled to the given * width * using the specified transformation * mode . The height of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved . If * width * is 0 or negative a null pixmap is returned . Returns a scaled copy of the image . The returned image is scaled to the given * height * using the specified transformation * mode . The width of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved . If * height * is 0 or negative a null pixmap is returned .
pub fn scaled(
        &self,
        w: i32,
        h: i32,
        aspect_mode: AspectRatioMode,
        mode: TransformationMode,
    ) -> Pixmap {
        let enum_aspect_mode_3 = aspect_mode as u32;
        let enum_mode_4 = mode as u32;
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled)(obj_data, w, h, enum_aspect_mode_3, enum_mode_4);
            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 scaled ( & self , w : i32 , h : i32 , aspect_mode : AspectRatioMode , mode : TransformationMode , ) -> Pixmap { let enum_aspect_mode_3 = aspect_mode as u32 ; let enum_mode_4 = mode as u32 ; let ( obj_data , funcs ) = self . get_pixmap_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scaled ) ( obj_data , w , h , enum_aspect_mode_3 , enum_mode_4 ) ; 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 } }
Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode
transformMode) const
Qt :: AspectRatioMode aspectRatioMode Qt :: TransformationMode transformMode ) const
&self
w
i32
h
i32
aspect_mode
AspectRatioMode
mode
TransformationMode