SDL_gfx rotozoom wrapper module
Rotates a surface clockwise by 90 degrees.
Rotates the passed surface clockwise by 90 degrees and returns a new pygame2.sdl.video.Surface with the rotated result. times denotes the amount of rotations to perform.
Rotates and zooms a surface.
Rotates and zooms a surface at the same time and returns a new pygame2.sdl.video.Surface with the result. angle is the rotation angle in degrees, zoom the zoom factor. The optional smooth argument is used for smoothing the edges and pixels of the returned surface.
Calculates the resulting surface size for a rotozoom operation.
Calculates the size of the resulting surface, if a rotozoom operation takes place on a specific pygame2.sdl.video.Surface.
Calculates the resulting surface size for a rotozoom operation.
Calculates the size of the resulting surface, if a rotozoom operation takes place on a specific pygame2.sdl.video.Surface.
Rotates and zooms a surface with different scaling factors for the x- and y- axes.
Rotates and zooms a surface at the same time and returns a new pygame2.sdl.video.Surface with the result. angle is the rotation angle in degrees, zoomx and zoomy the zoom factors for the x- and y-axis. The optional smooth argument is used for smoothing the edges and pixels of the returned surface.
Shrinks a surface.
Shrinks a surface and returns a new pygame2.sdl.video.Surface with the result. shrinkx and shrinky are the shrink factors for the x- and y-axis.
Zooms a surface.
Zooms a surface and returns a new pygame2.sdl.video.Surface with the result. zoomx and zoomy are the zoom factors for the x- and y-axis. The optional smooth argument is used for smoothing the edges and pixels of the returned surface.
Calculates the resulting surface size for a zoom operation.
Calculates the size of the resulting surface, if a zoom operation takes place on a specific pygame2.sdl.video.Surface.