Safe Haskell | None |
---|---|
Language | Haskell98 |
- magickGetImageHeight :: Ptr MagickWand -> IO CSize
- magickGetImageWidth :: Ptr MagickWand -> IO CSize
- magickGetImagePixelColor :: Ptr MagickWand -> CSize -> CSize -> Ptr PixelWand -> IO MagickBooleanType
- magickGetImageCompressionQuality :: Ptr MagickWand -> IO CSize
- magickSetImageCompression :: Ptr MagickWand -> CompressionType -> IO MagickBooleanType
- magickSetImageCompressionQuality :: Ptr MagickWand -> CSize -> IO MagickBooleanType
- magickGetImageBackgroundColor :: Ptr MagickWand -> Ptr PixelWand -> IO MagickBooleanType
- magickSetImageBackgroundColor :: Ptr MagickWand -> Ptr PixelWand -> IO MagickBooleanType
- magickExtentImage :: Ptr MagickWand -> CSize -> CSize -> CSize -> CSize -> IO MagickBooleanType
- magickFloodfillPaintImage :: Ptr MagickWand -> ChannelType -> Ptr PixelWand -> CDouble -> Ptr PixelWand -> CSize -> CSize -> MagickBooleanType -> IO MagickBooleanType
- magickNegateImage :: Ptr MagickWand -> MagickBooleanType -> IO MagickBooleanType
- magickNegateImageChannel :: Ptr MagickWand -> ChannelType -> MagickBooleanType -> IO MagickBooleanType
- magickGetImageClipMask :: Ptr MagickWand -> IO (Ptr MagickWand)
- magickSetImageClipMask :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType
- magickCompositeImage :: Ptr MagickWand -> Ptr MagickWand -> CompositeOperator -> CSize -> CSize -> IO MagickBooleanType
- magickCompositeImageChannel :: Ptr MagickWand -> Ptr MagickWand -> ChannelType -> CompositeOperator -> CSize -> CSize -> IO MagickBooleanType
- magickTransparentPaintImage :: Ptr MagickWand -> Ptr PixelWand -> Double -> Double -> MagickBooleanType -> IO MagickBooleanType
- magickBorderImage :: Ptr MagickWand -> Ptr PixelWand -> CSize -> CSize -> IO MagickBooleanType
- magickShaveImage :: Ptr MagickWand -> CSize -> CSize -> IO MagickBooleanType
- magickSetImageAlphaChannel :: Ptr MagickWand -> AlphaChannelType -> IO MagickBooleanType
- magickNewImage :: Ptr MagickWand -> CSize -> CSize -> Ptr PixelWand -> IO MagickBooleanType
- magickDrawImage :: Ptr MagickWand -> Ptr DrawingWand -> IO MagickBooleanType
- magickFlopImage :: Ptr MagickWand -> IO MagickBooleanType
- magickAddNoiseImage :: Ptr MagickWand -> NoiseType -> IO MagickBooleanType
- magickAddImage :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType
- magickFlipImage :: Ptr MagickWand -> IO MagickBooleanType
- magickSetVirtualPixelMethod :: Ptr MagickWand -> VirtualPixelMethod -> IO VirtualPixelMethod
- magickAppendImages :: Ptr MagickWand -> MagickBooleanType -> IO (Ptr MagickWand)
- magickReadImage :: Ptr MagickWand -> CString -> IO MagickBooleanType
- magickReadImageBlob :: Ptr MagickWand -> Ptr () -> CSize -> IO MagickBooleanType
- magickWriteImage :: Ptr MagickWand -> CString -> IO MagickBooleanType
- magickBlurImage :: Ptr MagickWand -> CDouble -> CDouble -> IO MagickBooleanType
- magickBlurImageChannel :: Ptr MagickWand -> ChannelType -> CDouble -> CDouble -> IO MagickBooleanType
- magickNormalizeImage :: Ptr MagickWand -> IO MagickBooleanType
- magickNormalizeImageChannel :: Ptr MagickWand -> ChannelType -> IO MagickBooleanType
- magickShadowImage :: Ptr MagickWand -> CDouble -> CDouble -> CSize -> CSize -> IO MagickBooleanType
- magickTrimImage :: Ptr MagickWand -> CDouble -> IO MagickBooleanType
- magickResetImagePage :: Ptr MagickWand -> CString -> IO MagickBooleanType
- magickDistortImage :: Ptr MagickWand -> DistortImageMethod -> CSize -> Ptr CDouble -> MagickBooleanType -> IO MagickBooleanType
- magickShadeImage :: Ptr MagickWand -> MagickBooleanType -> CDouble -> CDouble -> IO MagickBooleanType
- magickColorizeImage :: Ptr MagickWand -> Ptr PixelWand -> Ptr PixelWand -> IO MagickBooleanType
- magickFxImage :: Ptr MagickWand -> CString -> IO (Ptr MagickWand)
- magickFxImageChannel :: Ptr MagickWand -> ChannelType -> CString -> IO (Ptr MagickWand)
- magickSigmoidalContrastImage :: Ptr MagickWand -> MagickBooleanType -> CDouble -> CDouble -> IO MagickBooleanType
- magickSigmoidalContrastImageChannel :: Ptr MagickWand -> ChannelType -> MagickBooleanType -> CDouble -> CDouble -> IO MagickBooleanType
- magickEvaluateImage :: Ptr MagickWand -> MagickEvaluateOperator -> CDouble -> IO MagickBooleanType
- magickEvaluateImages :: Ptr MagickWand -> MagickEvaluateOperator -> IO MagickBooleanType
- magickEvaluateImageChannel :: Ptr MagickWand -> ChannelType -> MagickEvaluateOperator -> CDouble -> IO MagickBooleanType
- magickRollImage :: Ptr MagickWand -> CDouble -> CDouble -> IO MagickBooleanType
- magickAnnotateImage :: Ptr MagickWand -> Ptr DrawingWand -> CDouble -> CDouble -> CDouble -> CString -> IO MagickBooleanType
- magickMergeImageLayers :: Ptr MagickWand -> ImageLayerMethod -> IO (Ptr MagickWand)
- magickOptimizeImageLayers :: Ptr MagickWand -> IO (Ptr MagickWand)
- magickOptimizeImageTransparency :: Ptr MagickWand -> IO MagickBooleanType
- magickTintImage :: Ptr MagickWand -> Ptr PixelWand -> Ptr PixelWand -> IO MagickBooleanType
- magickSetImageMatte :: Ptr MagickWand -> MagickBooleanType -> IO MagickBooleanType
- magickCropImage :: Ptr MagickWand -> CSize -> CSize -> CSize -> CSize -> IO MagickBooleanType
- magickShearImage :: Ptr MagickWand -> Ptr PixelWand -> CDouble -> CDouble -> IO MagickBooleanType
- magickScaleImage :: Ptr MagickWand -> CSize -> CSize -> IO MagickBooleanType
- magickSparseColorImage :: Ptr MagickWand -> ChannelType -> SparseColorMethod -> CSize -> Ptr Double -> IO MagickBooleanType
- magickFunctionImage :: Ptr MagickWand -> MagickFunction -> CSize -> Ptr Double -> IO MagickBooleanType
- magickFunctionImageChannel :: Ptr MagickWand -> ChannelType -> MagickFunction -> CSize -> Ptr Double -> IO MagickBooleanType
- magickCoalesceImages :: Ptr MagickWand -> IO (Ptr MagickWand)
- magickGetNumberImages :: Ptr MagickWand -> IO CSize
- magickGetImage :: Ptr MagickWand -> IO (Ptr MagickWand)
- magickCompareImageLayers :: Ptr MagickWand -> ImageLayerMethod -> IO (Ptr MagickWand)
- magickGetImageScene :: Ptr MagickWand -> IO CSize
- magickRemoveImage :: Ptr MagickWand -> IO MagickBooleanType
- magickSetImage :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType
- magickImportImagePixels :: Ptr MagickWand -> CSize -> CSize -> CSize -> CSize -> CString -> StorageType -> Ptr () -> IO MagickBooleanType
- magickExportImagePixels :: Ptr MagickWand -> CSize -> CSize -> CSize -> CSize -> CString -> StorageType -> Ptr () -> IO MagickBooleanType
- magickRotateImage :: Ptr MagickWand -> Ptr PixelWand -> CDouble -> IO MagickBooleanType
- magickSetImageDepth :: Ptr MagickWand -> CSize -> IO MagickBooleanType
- magickSetImageDelay :: Ptr MagickWand -> CSize -> IO MagickBooleanType
- magickGetImageDelay :: Ptr MagickWand -> IO CSize
- magickGetImageBlob :: Ptr MagickWand -> Ptr CSize -> IO (Ptr CChar)
- magickGetImagesBlob :: Ptr MagickWand -> Ptr CSize -> IO (Ptr CChar)
- magickGetImageDepth :: Ptr MagickWand -> IO CSize
- magickGetImageFormat :: Ptr MagickWand -> IO CString
- magickSetImageFormat :: Ptr MagickWand -> CString -> IO MagickBooleanType
- magickStripImage :: Ptr MagickWand -> IO MagickBooleanType
- magickGetImageSignature :: Ptr MagickWand -> IO CString
- magickGetImageAlphaChannel :: Ptr MagickWand -> IO MagickBooleanType
- magickSetImageType :: Ptr MagickWand -> ImageType -> IO MagickBooleanType
Documentation
magickGetImageHeight :: Ptr MagickWand -> IO CSize Source
MagickGetImageHeight() returns the image height.
magickGetImageWidth :: Ptr MagickWand -> IO CSize Source
MagickGetImageWidth() returns the image width.
magickGetImagePixelColor Source
:: Ptr MagickWand | |
-> CSize | pixel x coordinate |
-> CSize | pixel y coordinate |
-> Ptr PixelWand | return the colormap color in this wand |
-> IO MagickBooleanType |
MagickGetImagePixelColor() returns the color of the specified pixel.
magickGetImageCompressionQuality :: Ptr MagickWand -> IO CSize Source
MagickGetImageCompressionQuality() gets the image compression quality.
magickSetImageCompression :: Ptr MagickWand -> CompressionType -> IO MagickBooleanType Source
MagickSetImageCompression() sets the image compression.
magickSetImageCompressionQuality :: Ptr MagickWand -> CSize -> IO MagickBooleanType Source
MagickSetImageCompressionQuality() sets the image compression quality.
magickGetImageBackgroundColor :: Ptr MagickWand -> Ptr PixelWand -> IO MagickBooleanType Source
MagickGetImageBackgroundColor() returns the image background color.
magickSetImageBackgroundColor :: Ptr MagickWand -> Ptr PixelWand -> IO MagickBooleanType Source
MagickSetImageBackgroundColor() sets the image background color.
:: Ptr MagickWand | wand |
-> CSize | width |
-> CSize | height |
-> CSize | x offset |
-> CSize | y offset |
-> IO MagickBooleanType |
MagickExtentImage() extends the image as defined by the geometry, gravity, and wand background color. Set the (x,y) offset of the geometry to move the original wand relative to the extended wand.
magickFloodfillPaintImage Source
:: Ptr MagickWand | wand |
-> ChannelType | channel |
-> Ptr PixelWand | fill |
-> CDouble | fuzz |
-> Ptr PixelWand | bordercolor |
-> CSize | x offset |
-> CSize | y offset |
-> MagickBooleanType | invert |
-> IO MagickBooleanType |
MagickFloodfillPaintImage() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.
:: Ptr MagickWand | |
-> MagickBooleanType | negate gray |
-> IO MagickBooleanType |
MagickNegateImage() negates the colors in the reference image. The Grayscale option means that only grayscale values within the image are negated. You can also reduce the influence of a particular channel with a gamma value of 0.
magickNegateImageChannel Source
:: Ptr MagickWand | |
-> ChannelType | |
-> MagickBooleanType | negate gray |
-> IO MagickBooleanType |
magickGetImageClipMask :: Ptr MagickWand -> IO (Ptr MagickWand) Source
MagickGetImageClipMask() gets the image clip mask at the current image index.
magickSetImageClipMask :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType Source
MagickSetImageClipMask() sets image clip mask.
:: Ptr MagickWand | |
-> Ptr MagickWand | source |
-> CompositeOperator | |
-> CSize | column offset |
-> CSize | row offset |
-> IO MagickBooleanType |
MagickCompositeImage() composite one image onto another at the specified offset.
magickCompositeImageChannel Source
:: Ptr MagickWand | |
-> Ptr MagickWand | source |
-> ChannelType | |
-> CompositeOperator | |
-> CSize | column offset |
-> CSize | row offset |
-> IO MagickBooleanType |
magickTransparentPaintImage Source
:: Ptr MagickWand | |
-> Ptr PixelWand | change this color to specified opacity value withing the image |
-> Double | the level of transarency: 1.0 fully opaque 0.0 fully transparent |
-> Double | By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill. |
-> MagickBooleanType | |
-> IO MagickBooleanType |
MagickTransparentPaintImage() changes any pixel that matches color with the color defined by fill.
:: Ptr MagickWand | wand |
-> Ptr PixelWand | bordercolor |
-> CSize | width |
-> CSize | height |
-> IO MagickBooleanType |
MagickBorderImage() surrounds the image with a border of the color defined by the bordercolor pixel wand.
:: Ptr MagickWand | wand |
-> CSize | columns |
-> CSize | rows |
-> IO MagickBooleanType |
MagickShaveImage() shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.
magickSetImageAlphaChannel Source
:: Ptr MagickWand | wand |
-> AlphaChannelType | alpha_type |
-> IO MagickBooleanType |
MagickSetImageAlphaChannel() activates, deactivates, resets, or sets the alpha channel.
:: Ptr MagickWand | |
-> CSize | width |
-> CSize | height |
-> Ptr PixelWand | background color |
-> IO MagickBooleanType |
MagickNewImage() adds a blank image canvas of the specified size and background color to the wand.
magickDrawImage :: Ptr MagickWand -> Ptr DrawingWand -> IO MagickBooleanType Source
MagickDrawImage() renders the drawing wand on the current image.
magickFlopImage :: Ptr MagickWand -> IO MagickBooleanType Source
MagickFlopImage() creates a horizontal mirror image by reflecting the pixels around the central y-axis.
magickAddNoiseImage :: Ptr MagickWand -> NoiseType -> IO MagickBooleanType Source
MagickAddNoiseImage() adds random noise to the image. The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.
magickAddImage :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType Source
MagickAddImage() adds a clone of the images from the second wand and inserts them into the first wand. Use MagickSetLastIterator(), to append new images into an existing wand, current image will be set to last image so later adds with also be appened to end of wand.
Use MagickSetFirstIterator() to prepend new images into wand, any more images added will also be prepended before other images in the wand. However the order of a list of new images will not change.
Otherwise the new images will be inserted just after the current image, and any later image will also be added after this current image but before the previously added images. Caution is advised when multiple image adds are inserted into the middle of the wand image list.
magickFlipImage :: Ptr MagickWand -> IO MagickBooleanType Source
MagickFlipImage() creates a vertical mirror image by reflecting the pixels around the central x-axis.
magickSetVirtualPixelMethod :: Ptr MagickWand -> VirtualPixelMethod -> IO VirtualPixelMethod Source
MagickSetImageVirtualPixelMethod() sets the image virtual pixel method. the image virtual pixel method : UndefinedVirtualPixelMethod, ConstantVirtualPixelMethod, EdgeVirtualPixelMethod, MirrorVirtualPixelMethod, or TileVirtualPixelMethod.
magickAppendImages :: Ptr MagickWand -> MagickBooleanType -> IO (Ptr MagickWand) Source
MagickAppendImages() append the images in a wand from the current image onwards, creating a new wand with the single image result. This is affected by the gravity and background settings of the first image. Typically you would call either MagickResetIterator() or MagickSetFirstImage() before calling this function to ensure that all the images in the wand's image list will be appended together.
magickReadImage :: Ptr MagickWand -> CString -> IO MagickBooleanType Source
MagickReadImage() reads an image or image sequence. The images are inserted at the current image pointer position. Use MagickSetFirstIterator(), MagickSetLastIterator, or MagickSetImageIndex() to specify the current image pointer position at the beginning of the image list, the end, or anywhere in-between respectively.
magickReadImageBlob :: Ptr MagickWand -> Ptr () -> CSize -> IO MagickBooleanType Source
MagickReadImageBlob() reads an image or image sequence from a blob.
magickWriteImage :: Ptr MagickWand -> CString -> IO MagickBooleanType Source
MagickWriteImage() writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by MagickReadImage() or MagickSetImageFilename().
magickBlurImage :: Ptr MagickWand -> CDouble -> CDouble -> IO MagickBooleanType Source
MagickBlurImage() blurs an image. We convolve the image with a gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and BlurImage() selects a suitable radius for you.
The format of the MagickBlurImage method is:
magickBlurImageChannel :: Ptr MagickWand -> ChannelType -> CDouble -> CDouble -> IO MagickBooleanType Source
magickNormalizeImage :: Ptr MagickWand -> IO MagickBooleanType Source
MagickNormalizeImage() enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available
You can also reduce the influence of a particular channel with a gamma value of 0.
magickNormalizeImageChannel :: Ptr MagickWand -> ChannelType -> IO MagickBooleanType Source
:: Ptr MagickWand | |
-> CDouble | percentage transparency |
-> CDouble | the standard deviation of the Gaussian, in pixels |
-> CSize | the shadow x-offset |
-> CSize | the shadow y-offset |
-> IO MagickBooleanType |
MagickShadowImage() simulates an image shadow.
magickTrimImage :: Ptr MagickWand -> CDouble -> IO MagickBooleanType Source
MagickTrimImage() remove edges that are the background color from the image.
magickResetImagePage :: Ptr MagickWand -> CString -> IO MagickBooleanType Source
MagickResetImagePage() resets the Wand page canvas and position.
:: Ptr MagickWand | |
-> DistortImageMethod | the method of image distortion |
-> CSize | the number of arguments given for this distortion method |
-> Ptr CDouble | the arguments for this distortion method |
-> MagickBooleanType | attempt to resize destination to fit distorted source |
-> IO MagickBooleanType |
MagickDistortImage() distorts an image using various distortion methods,
by mapping color lookups of the source image to a new destination image usally
of the same size as the source image, unless bestfit
is set to true.
If bestfit
is enabled, and distortion allows it, the destination image
is adjusted to ensure the whole source image
will just fit within the final
destination image, which will be sized and offset accordingly. Also in many cases
the virtual offset of the source image will be taken into account in the mapping.
:: Ptr MagickWand | |
-> MagickBooleanType | a value other than zero shades the intensity of each pixel |
-> CDouble | azimuth of the light source direction |
-> CDouble | evelation of the light source direction |
-> IO MagickBooleanType |
MagickShadeImage() shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.
:: Ptr MagickWand | |
-> Ptr PixelWand | the colorize pixel wand |
-> Ptr PixelWand | the opacity pixel wand |
-> IO MagickBooleanType |
MagickColorizeImage() blends the fill color with each pixel in the image.
:: Ptr MagickWand | |
-> CString | the expression |
-> IO (Ptr MagickWand) |
MagickFxImage() evaluate expression for each pixel in the image.
:: Ptr MagickWand | |
-> ChannelType | the image channel(s) |
-> CString | the expression |
-> IO (Ptr MagickWand) |
MagickFxImageChannel() evaluate expression for each pixel in the image.
magickSigmoidalContrastImage Source
:: Ptr MagickWand | |
-> MagickBooleanType | increase or decrease image contrast |
-> CDouble | strength of the contrast, the larger the number the more 'threshold-like' it becomes |
-> CDouble | midpoint of the function as a color value 0 to |
-> IO MagickBooleanType |
MagickSigmoidalContrastImage() adjusts the contrast of an image with a
non-linear sigmoidal contrast algorithm. Increase the contrast of the image
using a sigmoidal transfer function without saturating highlights or shadows.
Contrast indicates how much to increase the contrast (0 is none; 3 is typical;
20 is pushing it); mid-point indicates where midtones fall in the resultant
image (0 is white; 50 is middle-gray; 100 is black). Set sharpen to True
to increase the image contrast otherwise the contrast is reduced.
magickSigmoidalContrastImageChannel Source
:: Ptr MagickWand | |
-> ChannelType | identify which channel to level: |
-> MagickBooleanType | increase or decrease image contrast |
-> CDouble | strength of the contrast, the larger the number the more 'threshold-like' it becomes |
-> CDouble | midpoint of the function as a color value 0 to |
-> IO MagickBooleanType |
:: Ptr MagickWand | |
-> MagickEvaluateOperator | a channel operator |
-> CDouble | value |
-> IO MagickBooleanType |
MagickEvaluateImage() applies an arithmetic, relational, or logical expression to an image. Use these operators to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.
:: Ptr MagickWand | |
-> MagickEvaluateOperator | a channel operator |
-> IO MagickBooleanType |
magickEvaluateImageChannel Source
:: Ptr MagickWand | |
-> ChannelType | the channel(s) |
-> MagickEvaluateOperator | a channel operator |
-> CDouble | value |
-> IO MagickBooleanType |
:: Ptr MagickWand | |
-> CDouble | the x offset |
-> CDouble | the y offset |
-> IO MagickBooleanType |
MagickRollImage() offsets an image as defined by x and y.
:: Ptr MagickWand | |
-> Ptr DrawingWand | the draw wand |
-> CDouble | x ordinate to left of text |
-> CDouble | y ordinate to text baseline |
-> CDouble | rotate text relative to this angle |
-> CString | text to draw |
-> IO MagickBooleanType |
MagickAnnotateImage() annotates an image with text.
:: Ptr MagickWand | |
-> ImageLayerMethod | the method of selecting the size of the initial canvas |
-> IO (Ptr MagickWand) |
MagickMergeImageLayers() composes all the image layers from the current given image onward to produce a single image of the merged layers. The inital canvas's size depends on the given ImageLayerMethod, and is initialized using the first images background color. The images are then compositied onto that image in sequence using the given composition that has been assigned to each individual image.
magickOptimizeImageLayers :: Ptr MagickWand -> IO (Ptr MagickWand) Source
MagickOptimizeImageLayers() compares each image the GIF disposed forms of the previous image in the sequence. From this it attempts to select the smallest cropped image to replace each frame, while preserving the results of the animation.
magickOptimizeImageTransparency :: Ptr MagickWand -> IO MagickBooleanType Source
MagickOptimizeImageTransparency() takes a frame optimized GIF animation, and compares the overlayed pixels against the disposal image resulting from all the previous frames in the animation. Any pixel that does not change the disposal image (and thus does not effect the outcome of an overlay) is made transparent.
WARNING: This modifies the current images directly, rather than generate a new image sequence.
:: Ptr MagickWand | |
-> Ptr PixelWand | the tint pixel wand. |
-> Ptr PixelWand | opacity pixel wand |
-> IO MagickBooleanType |
MagickTintImage() applies a color vector to each pixel in the image. The length of the vector is 0 for black and white and at its maximum for the midtones. The vector weighting function is f(x)=(1-(4.0*((x-0.5)*(x-0.5)))).
magickSetImageMatte :: Ptr MagickWand -> MagickBooleanType -> IO MagickBooleanType Source
MagickSetImageMatte() sets the image matte channel.
:: Ptr MagickWand | |
-> CSize | the region width |
-> CSize | the region height |
-> CSize | the region x-offset |
-> CSize | the region y-offset |
-> IO MagickBooleanType |
MagickCropImage() extracts a region of the image.
:: Ptr MagickWand | |
-> Ptr PixelWand | the background pixel wand |
-> CDouble | the number of degrees to shear the image |
-> CDouble | the number of degrees to shear the image |
-> IO MagickBooleanType |
MagickShearImage() slides one edge of an image along the X or Y axis, creating a parallelogram. An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis. The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles left over from shearing the image are filled with the background color.
:: Ptr MagickWand | |
-> CSize | the number of columns in the scaled image |
-> CSize | the number of rows in the scaled image |
-> IO MagickBooleanType |
MagickScaleImage() scales the size of an image to the given dimensions.
magickSparseColorImage :: Ptr MagickWand -> ChannelType -> SparseColorMethod -> CSize -> Ptr Double -> IO MagickBooleanType Source
MagickSparseColorImage(), given a set of coordinates, interpolates the colors found at those coordinates, across the whole image, using various methods.
The format of the MagickSparseColorImage method is:
ArcSparseColorion will always ignore source image offset, and always bestfit
the destination image with the top left corner offset relative to the polar mapping center.
Bilinear has no simple inverse mapping so will not allow bestfit
style of image sparseion.
Affine, Perspective, and Bilinear, will do least squares fitting of the distrotion when more than the minimum number of control point pairs are provided.
Perspective, and Bilinear, will fall back to a Affine sparseion when less than 4 control point pairs are provided. While Affine sparseions will let you use any number of control point pairs, that is Zero pairs is a No-Op (viewport only) distrotion, one pair is a translation and two pairs of control points will do a scale-rotate-translate, without any shearing.
magickFunctionImage :: Ptr MagickWand -> MagickFunction -> CSize -> Ptr Double -> IO MagickBooleanType Source
MagickFunctionImage() applys an arithmetic, relational, or logical expression to an image. Use these operators to lighten or darken an image, to increase or decrease contrast in an image, or to produce the "negative" of an image.
magickFunctionImageChannel :: Ptr MagickWand -> ChannelType -> MagickFunction -> CSize -> Ptr Double -> IO MagickBooleanType Source
magickCoalesceImages :: Ptr MagickWand -> IO (Ptr MagickWand) Source
MagickCoalesceImages() composites a set of images while respecting any page offsets and disposal methods. GIF, MIFF, and MNG animation sequences typically start with an image background and each subsequent image varies in size and offset. MagickCoalesceImages() returns a new sequence where each image in the sequence is the same size as the first and composited with the next image in the sequence.
magickGetNumberImages :: Ptr MagickWand -> IO CSize Source
MagickGetNumberImages() returns the number of images associated with a magick wand.
magickGetImage :: Ptr MagickWand -> IO (Ptr MagickWand) Source
MagickGetImage() gets the image at the current image index.
magickCompareImageLayers :: Ptr MagickWand -> ImageLayerMethod -> IO (Ptr MagickWand) Source
MagickCompareImageLayers() compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers.
magickGetImageScene :: Ptr MagickWand -> IO CSize Source
MagickGetImageScene() gets the image scene
magickRemoveImage :: Ptr MagickWand -> IO MagickBooleanType Source
MagickRemoveImage() removes an image from the image list.
magickSetImage :: Ptr MagickWand -> Ptr MagickWand -> IO MagickBooleanType Source
MagickSetImage() replaces the last image returned by MagickSetImageIndex(), MagickNextImage(), MagickPreviousImage() with the images from the specified wand.
magickImportImagePixels Source
:: Ptr MagickWand | |
-> CSize | x |
-> CSize | y |
-> CSize | width |
-> CSize | height |
-> CString | this string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. |
-> StorageType | |
-> Ptr () | This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type |
-> IO MagickBooleanType |
MagickImportImagePixels() accepts pixel data and stores it in the image at the location you specify. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The pixel data can be either char, short int, int, ssize_t, float, or double in the order specified by map.
Suppose your want to upload the first scanline of a 640x480 image from character data in red-green-blue order: magickImportImagePixels wand 0 0 640 1 RGB charPixel pixels
magickExportImagePixels Source
:: Ptr MagickWand | |
-> CSize | x |
-> CSize | y |
-> CSize | width |
-> CSize | height |
-> CString | this string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha (0 is transparent), O = opacity (0 is opaque), C = cyan, Y = yellow, M = magenta, K = black, I = intensity (for grayscale), P = pad. |
-> StorageType | |
-> Ptr () | This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type |
-> IO MagickBooleanType |
MagickExportImagePixels() extracts pixel data from an image and returns it to you. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered. The data is returned as char, short int, int, ssize_t, float, or double in the order specified by map.
magickRotateImage :: Ptr MagickWand -> Ptr PixelWand -> CDouble -> IO MagickBooleanType Source
MagickRotateImage() rotates an image the specified number of degrees. Empty triangles left over from rotating the image are filled with the background color.
magickSetImageDepth :: Ptr MagickWand -> CSize -> IO MagickBooleanType Source
MagickSetImageDepth() sets the image depth.
magickSetImageDelay :: Ptr MagickWand -> CSize -> IO MagickBooleanType Source
MagickSetImageDelay() sets the image delay.
magickGetImageDelay :: Ptr MagickWand -> IO CSize Source
MagickGetImageDelay() gets the image delay.
magickGetImageBlob :: Ptr MagickWand -> Ptr CSize -> IO (Ptr CChar) Source
MagickGetImageBlob() implements direct to memory image formats. It returns the image as a blob (a formatted "file" in memory) and its length, starting from the current position in the image sequence. Use MagickSetImageFormat() to set the format to write to the blob (GIF, JPEG, PNG, etc.). Utilize MagickResetIterator() to ensure the write is from the beginning of the image sequence. Use MagickRelinquishMemory() to free the blob when you are done with it. The format of the MagickGetImageBlob method is:
magickGetImagesBlob :: Ptr MagickWand -> Ptr CSize -> IO (Ptr CChar) Source
MagickGetImagesBlob() implements direct to memory image formats ideal for use with sequenced images to get a dump of the whole sequence
magickGetImageDepth :: Ptr MagickWand -> IO CSize Source
MagickGetImageDepth() gets the image depth.
magickGetImageFormat :: Ptr MagickWand -> IO CString Source
MagickGetImageFormat() returns the format of a particular image in a sequence.
magickSetImageFormat :: Ptr MagickWand -> CString -> IO MagickBooleanType Source
MagickSetImageFormat() sets the format of a particular image in a sequence.
magickStripImage :: Ptr MagickWand -> IO MagickBooleanType Source
MagickStripImage() strips an image of all profiles and comments.
magickGetImageSignature :: Ptr MagickWand -> IO CString Source
MagickGetImageSignature() generates an SHA-256 message digest for the image pixel stream.
magickGetImageAlphaChannel :: Ptr MagickWand -> IO MagickBooleanType Source
MagickGetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.
magickSetImageType :: Ptr MagickWand -> ImageType -> IO MagickBooleanType Source
MagickSetImageType() sets the image type.