hsmagick-0.5: FFI bindings for the GraphicsMagick library

Safe Haskell | None

Graphics.Transform.Magick.Images

Synopsis

- initializeMagick :: IO ()
- readImage :: FilePath -> IO HImage
- writeImage :: FilePath -> HImage -> IO ()
- pingImage :: FilePath -> IO HImage
- readInlineImage :: String -> HImage
- getFilename :: HasFilename a => a -> FilePath
- blobToImage :: ByteString -> HImage
- imageToBlob :: HImage -> ByteString
- flipImage :: HImage -> HImage
- flopImage :: HImage -> HImage
- rotateImage :: Double -> HImage -> HImage
- affineTransform :: AffineMatrix -> HImage -> HImage
- shearImage :: Double -> Double -> HImage -> HImage
- chopImage :: Rectangle -> HImage -> HImage
- cropImage :: Rectangle -> HImage -> HImage
- flattenImage :: [HImage] -> HImage
- mosaic :: [(HImage, Rectangle)] -> HImage
- rollImage :: Int -> Int -> HImage -> HImage
- shaveImage :: Rectangle -> HImage -> HImage
- scaleImage :: Word -> Word -> HImage -> HImage
- magnifyImage :: HImage -> HImage
- minifyImage :: HImage -> HImage
- sampleImage :: Word -> Word -> HImage -> HImage
- thumbnailImage :: Word -> Word -> HImage -> HImage
- resizeImage :: Int -> Int -> FilterTypes -> Double -> HImage -> HImage
- contrastImage :: Contrast -> HImage -> HImage
- equalizeImage :: HImage -> HImage
- gammaImage :: PixelPacket Double -> HImage -> HImage
- levelImage :: Level -> HImage -> HImage
- levelImageChannel :: ChannelType -> Level -> HImage -> HImage
- modulateImage :: Modulation -> HImage -> HImage
- negateImage :: Negation -> HImage -> HImage
- normalizeImage :: HImage -> HImage
- constituteImage :: StorablePixel a b => PixMap -> [[a]] -> HImage
- dispatchImage :: StorablePixel a b => PixMap -> StorageType -> Rectangle -> HImage -> [[a]]
- importPixelImageArea :: QuantumType2 -> Word -> [[Word8]] -> Maybe ImportPixelAreaOptions -> HImage -> HImage
- compositeImage :: CompositeOp -> Int -> Int -> HImage -> HImage -> HImage
- allocateImage :: ImageNotLoaded -> HImage
- setImageColormap :: Word32 -> HImage -> HImage
- newImageColormap :: Word32 -> HImage
- appendImages :: ImageOrder -> [HImage] -> HImage
- averageImages :: [HImage] -> HImage
- cycleColormapImage :: Int -> HImage -> HImage
- destroyImage :: HImage -> IO ()
- animateImages :: [HImage] -> IO ()

# Documentation

initializeMagick :: IO ()Source

initializeMagick must be invoked by the user program before making use of the library functions.

readImage :: FilePath -> IO HImage Source

writeImage :: FilePath -> HImage -> IO ()Source

pingImage :: FilePath -> IO HImage Source

readInlineImage :: String -> HImage Source

getFilename :: HasFilename a => a -> FilePath Source

blobToImage :: ByteString -> HImage Source

imageToBlob :: HImage -> ByteString Source

flipImage :: HImage -> HImage Source

flopImage :: HImage -> HImage Source

rotateImage :: Double -> HImage -> HImage Source

affineTransform :: AffineMatrix -> HImage -> HImage Source

shearImage :: Double -> Double -> HImage -> HImage Source

chopImage :: Rectangle -> HImage -> HImage Source

cropImage :: Rectangle -> HImage -> HImage Source

flattenImage :: [HImage] -> HImage Source

mosaic :: [(HImage, Rectangle)] -> HImage Source

rollImage :: Int -> Int -> HImage -> HImage Source

shaveImage :: Rectangle -> HImage -> HImage Source

scaleImage :: Word -> Word -> HImage -> HImage Source

magnifyImage :: HImage -> HImage Source

minifyImage :: HImage -> HImage Source

sampleImage :: Word -> Word -> HImage -> HImage Source

thumbnailImage :: Word -> Word -> HImage -> HImage Source

resizeImage :: Int -> Int -> FilterTypes -> Double -> HImage -> HImage Source

contrastImage :: Contrast -> HImage -> HImage Source

equalizeImage :: HImage -> HImage Source

gammaImage :: PixelPacket Double -> HImage -> HImage Source

levelImage :: Level -> HImage -> HImage Source

levelImageChannel :: ChannelType -> Level -> HImage -> HImage Source

modulateImage :: Modulation -> HImage -> HImage Source

negateImage :: Negation -> HImage -> HImage Source

normalizeImage :: HImage -> HImage Source

constituteImage :: StorablePixel a b => PixMap -> [[a]] -> HImage Source

dispatchImage :: StorablePixel a b => PixMap -> StorageType -> Rectangle -> HImage -> [[a]]Source

importPixelImageArea :: QuantumType2 -> Word -> [[Word8]] -> Maybe ImportPixelAreaOptions -> HImage -> HImage Source

compositeImage :: CompositeOp -> Int -> Int -> HImage -> HImage -> HImage Source

allocateImage :: ImageNotLoaded -> HImage Source

setImageColormap :: Word32 -> HImage -> HImage Source

newImageColormap :: Word32 -> HImage Source

appendImages :: ImageOrder -> [HImage] -> HImage Source

averageImages :: [HImage] -> HImage Source

cycleColormapImage :: Int -> HImage -> HImage Source

destroyImage :: HImage -> IO ()Source

animateImages :: [HImage] -> IO ()Source