Safe Haskell | None |
---|---|
Language | Haskell98 |
- withMagickWandGenesis :: ResourceT IO c -> IO c
- localGenesis :: MonadBaseControl IO m => ResourceT m a -> m a
- magickWand :: MonadResource m => m (ReleaseKey, Ptr MagickWand)
- wandResource :: MonadResource m => IO (Ptr MagickWand) -> m (ReleaseKey, Ptr MagickWand)
- cloneMagickWand :: MonadResource m => Ptr MagickWand -> m (ReleaseKey, Ptr MagickWand)
- getSize :: MonadResource m => Ptr MagickWand -> m (Int, Int)
- setSize :: MonadResource m => Ptr MagickWand -> Int -> Int -> m ()
- setImageArtifact :: MonadResource m => PMagickWand -> ByteString -> ByteString -> m ()
- deleteImageArtifact :: MonadResource m => PMagickWand -> ByteString -> m ()
- getIteratorIndex :: MonadResource m => Ptr MagickWand -> m Int
- setIteratorIndex :: MonadResource m => Ptr MagickWand -> Int -> m ()
- resetIterator :: MonadResource m => Ptr MagickWand -> m ()
- magickIterate :: MonadResource m => Ptr MagickWand -> (Ptr MagickWand -> m ()) -> m ()
- magickIterateReverse :: MonadResource m => Ptr MagickWand -> (Ptr MagickWand -> m ()) -> m ()
- deleteOption :: MonadResource m => Ptr MagickWand -> Text -> m ()
- getOption :: MonadResource m => Ptr MagickWand -> Text -> m Text
- setOption :: MonadResource m => Ptr MagickWand -> Text -> Text -> m ()
- getOptions :: MonadResource m => Ptr MagickWand -> Text -> m [Text]
- deleteImageProperty :: MonadResource m => Ptr MagickWand -> Text -> m ()
- getImageProperty :: MonadResource m => Ptr MagickWand -> Text -> m Text
- setImageProperty :: MonadResource m => Ptr MagickWand -> Text -> Text -> m ()
- getImageProperties :: MonadResource m => Ptr MagickWand -> Text -> m [Text]
- getImageProfile :: MonadResource m => Ptr MagickWand -> Text -> m (Vector Word8)
- removeImageProfile :: MonadResource m => Ptr MagickWand -> Text -> m (Vector Word8)
- setImageProfile :: MonadResource m => Ptr MagickWand -> Text -> Vector Word8 -> m ()
- getImageProfiles :: MonadResource m => Ptr MagickWand -> Text -> m [Text]
- getColorspace :: MonadResource m => PMagickWand -> m ColorspaceType
- getCompression :: MonadResource m => PMagickWand -> m CompressionType
- getCompressionQuality :: MonadResource m => PMagickWand -> m Int
- getImageArtifacts :: MonadResource m => Ptr MagickWand -> Text -> m [Text]
- getImageResolution :: MonadResource m => PMagickWand -> m (Double, Double)
- setColorspace :: MonadResource m => PMagickWand -> ColorspaceType -> m ()
- setCompression :: MonadResource m => PMagickWand -> CompressionType -> m ()
- setCompressionQuality :: MonadResource m => PMagickWand -> Int -> m ()
- setImageResolution :: MonadResource m => PMagickWand -> Double -> Double -> m ()
Documentation
withMagickWandGenesis :: ResourceT IO c -> IO c Source
Create magic wand environment and closes it at the end of the work, should wrap all MagickWand functions withMagickWandGenesis :: IO a -> IO a withMagickWandGenesis :: (MonadCatchIO m, MonadBaseControl IO m, MonadCatchIO (ResourceT IO)) => (ResourceT m c) -> m c
localGenesis :: MonadBaseControl IO m => ResourceT m a -> m a Source
Open a nested block inside genesis (for tracking nested resources)
Creation
magickWand :: MonadResource m => m (ReleaseKey, Ptr MagickWand) Source
wandResource :: MonadResource m => IO (Ptr MagickWand) -> m (ReleaseKey, Ptr MagickWand) Source
cloneMagickWand :: MonadResource m => Ptr MagickWand -> m (ReleaseKey, Ptr MagickWand) Source
getSize :: MonadResource m => Ptr MagickWand -> m (Int, Int) Source
Returns the size associated with the magick wand.
setSize :: MonadResource m => Ptr MagickWand -> Int -> Int -> m () Source
setImageArtifact :: MonadResource m => PMagickWand -> ByteString -> ByteString -> m () Source
MagickSetImageArtifact() associates a artifact with an image. The format of the MagickSetImageArtifact method is:
deleteImageArtifact :: MonadResource m => PMagickWand -> ByteString -> m () Source
MagickDeleteImageArtifact() deletes a wand artifact.
getIteratorIndex :: MonadResource m => Ptr MagickWand -> m Int Source
Returns the position of the iterator in the image list.
setIteratorIndex :: MonadResource m => Ptr MagickWand -> Int -> m () Source
Sets the iterator to the given position in the image list specified with the index parameter. A zero index will set the first image as current, and so on. Negative indexes can be used to specify an image relative to the end of the images in the wand, with -1 being the last image in the wand.
resetIterator :: MonadResource m => Ptr MagickWand -> m () Source
magickIterate :: MonadResource m => Ptr MagickWand -> (Ptr MagickWand -> m ()) -> m () Source
magickIterateReverse :: MonadResource m => Ptr MagickWand -> (Ptr MagickWand -> m ()) -> m () Source
deleteOption :: MonadResource m => Ptr MagickWand -> Text -> m () Source
Associates one or options with the wand (e.g. setOption wand "jpeg:perserve" "yes").
getOption :: MonadResource m => Ptr MagickWand -> Text -> m Text Source
setOption :: MonadResource m => Ptr MagickWand -> Text -> Text -> m () Source
Associates one or options with the wand (e.g. setOption wand "jpeg:perserve" "yes").
getOptions :: MonadResource m => Ptr MagickWand -> Text -> m [Text] Source
deleteImageProperty :: MonadResource m => Ptr MagickWand -> Text -> m () Source
Deletes a wand property
getImageProperty :: MonadResource m => Ptr MagickWand -> Text -> m Text Source
Returns a value associated with the specified property
setImageProperty :: MonadResource m => Ptr MagickWand -> Text -> Text -> m () Source
Associates a property with an image.
getImageProperties :: MonadResource m => Ptr MagickWand -> Text -> m [Text] Source
Returns all the property names that match the specified pattern associated with a wand
getImageProfile :: MonadResource m => Ptr MagickWand -> Text -> m (Vector Word8) Source
Returns the named image profile.
removeImageProfile :: MonadResource m => Ptr MagickWand -> Text -> m (Vector Word8) Source
Removes the named image profile and returns it
setImageProfile :: MonadResource m => Ptr MagickWand -> Text -> Vector Word8 -> m () Source
Adds a named profile to the magick wand. If a profile with the same
name already exists, it is replaced. This method differs from the
profileImage
method in that it does not apply any CMS color profiles.
getImageProfiles :: MonadResource m => Ptr MagickWand -> Text -> m [Text] Source
Returns all the profile names that match the specified pattern associated with a wand.
getColorspace :: MonadResource m => PMagickWand -> m ColorspaceType Source
MagickGetColorspace() gets the wand colorspace type.
getCompression :: MonadResource m => PMagickWand -> m CompressionType Source
getCompressionQuality :: MonadResource m => PMagickWand -> m Int Source
getImageArtifacts :: MonadResource m => Ptr MagickWand -> Text -> m [Text] Source
getImageResolution :: MonadResource m => PMagickWand -> m (Double, Double) Source
setColorspace :: MonadResource m => PMagickWand -> ColorspaceType -> m () Source
MagickSetColorspace() sets the wand colorspace type.
setCompression :: MonadResource m => PMagickWand -> CompressionType -> m () Source
setCompressionQuality :: MonadResource m => PMagickWand -> Int -> m () Source
setImageResolution :: MonadResource m => PMagickWand -> Double -> Double -> m () Source