picedit-0.2.3.0: simple image manipulation functions

Data.Picture

Description

Synopsis

Documentation

(R, G, B, A) color channels

Manipulation functions

Turn the Picture grayscale

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

Set contrast level of Picture, a number between -255 and 255

Set brightness level of Picture, a number between -255 and 255

Set gamma level of Picture

Inverts the Picture

Compress the image using SVD note: this is not size compression, it's just a k-rank approximation of the image

embed :: Picture -> (Int, Int) -> Picture -> Picture Source #

Embed a Picture into another one, in the specified position-}

resize :: (Int, Int) -> Picture -> Picture Source #

Resize an image using nearest-neighbor interpolation

Scale an image using the resize function

Converting between Image and Picture

Converts a JuicyPixel 'Image PixelRGBA8' to Picture

Converts a Picture to JuicyPixel 'Image PixelRGBA8'

IO operations

Reads a Picture from specified path

Write the specified Picture to a PNG file