Safe Haskell | None |
---|---|
Language | Haskell2010 |
- grayscale :: Picture -> Picture
- readPicture :: FilePath -> IO (Either String Picture)
- fromImage :: Image PixelRGB8 -> Picture
- toImage :: Picture -> Image PixelRGB8
- writePicturePng :: FilePath -> Picture -> IO ()
- fade :: Double -> Picture -> Picture
- rotate :: Double -> Maybe (Int, Int) -> Picture -> Picture
- contrast :: Double -> Picture -> Picture
- brightness :: Double -> Picture -> Picture
- gamma :: Int -> Picture -> Picture
- invert :: Picture -> Picture
Documentation
writePicturePng :: FilePath -> Picture -> IO () Source #
Write the specified Picture
to a PNG file
rotate :: Double -> Maybe (Int, Int) -> Picture -> Picture Source #
Rotate Picture
for the specified degrees, around the specified origin.
- If the origin is Nothing
, rotates around the center
contrast :: Double -> Picture -> Picture Source #
Set contrast level of Picture
, a number between -255 and 255
brightness :: Double -> Picture -> Picture Source #
Set brightness level of Picture
, a number between -255 and 255