picedit-0.1.0.0: simple image manipulation functions

Safe HaskellNone
LanguageHaskell2010

Picture

Synopsis

Documentation

grayscale :: Picture -> Picture Source #

Turn the Picture grayscale

readPicture :: FilePath -> IO (Either String Picture) Source #

Reads a Picture from specified path

fromImage :: Image PixelRGB8 -> Picture Source #

Converts a JuicyPixel 'Image PixelRGB8' to Picture

toImage :: Picture -> Image PixelRGB8 Source #

Converts a Picture to JuicyPixel 'Image PixelRGB8'

writePicturePng :: FilePath -> Picture -> IO () Source #

Write the specified Picture to a PNG file

fade :: Double -> Picture -> Picture Source #

Fade the Picture by a number between 0 and 1

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

gamma :: Int -> Picture -> Picture Source #

Set gamma level of Picture

invert :: Picture -> Picture Source #

Inverts the Picture