HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesdl2-gfx-0.3.0.0Haskell2010

SDL.Rotozoom

Bindings to SDL2_gfx's surface rotation and zoom functionality.

Synopsis
datadata Smooth

Whether resulting Surfaces are anti-aliased or not.

Instances8Bounded, Enum, Eq, Ord, Read, Show, …
valueshrink :: MonadIO m => Surface -> CInt -> CInt -> m Surface

Shrink a surface by an integer ratio.

The two CInt arguments are the horizontal and vertical shrinking ratios: 2 halves a dimension, 5 makes it a fifth of its original size etc.

The resulting Surface is anti-aliased and, if the input wasn't 8-bit or 32-bit, converted to a 32-bit RGBA format.