Trait sdl2_gfx::rotozoom::RotozoomSurface [] [src]

pub trait RotozoomSurface {
    fn rotozoom(
        &self,
        angle: f64,
        zoom: f64,
        smooth: bool
    ) -> Result<Surface, String>; fn rotozoom_xy(
        &self,
        angle: f64,
        zoomx: f64,
        zoomy: f64,
        smooth: bool
    ) -> Result<Surface, String>; fn zoom(
        &self,
        zoomx: f64,
        zoomy: f64,
        smooth: bool
    ) -> Result<Surface, String>; fn shrink(&self, factorx: isize, factory: isize) -> Result<Surface, String>; fn rotate_90deg(&self, turns: isize) -> Result<Surface, String>; }

RotozoomSurface for work with rust-sdl2 Surface type

Required Methods

Rotates and zooms a surface and optional anti-aliasing.

Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing.

Zoom a surface by independent horizontal and vertical factors with optional smoothing.

Shrink a surface by an integer ratio using averaging.

Rotates a 8/16/24/32 bit surface in increments of 90 degrees.

Implementors