picedit-0.1.1.1: simple image manipulation functions

Data.Picture

Description

Synopsis

# Documentation

(R, G, B) 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

# Converting between Image and Picture

Converts a JuicyPixel 'Image PixelRGB8' to Picture

Converts a Picture to JuicyPixel 'Image PixelRGB8'

# IO operations

Reads a Picture from specified path

Write the specified Picture to a PNG file