imagemagick-0.0.2: bindings to imagemagick library

Safe HaskellNone

Graphics.ImageMagick.MagickWand.FFI.PixelWand

Synopsis

Documentation

destroyPixelWand :: Ptr PixelWand -> IO (Ptr PixelWand)Source

DestroyPixelWand() deallocates resources associated with a PixelWand.

pixelGetMagickColor :: Ptr PixelWand -> Ptr MagickPixelPacket -> IO ()Source

PixelGetMagickColor() gets the magick color of the pixel wand.

pixelSetMagickColor :: Ptr PixelWand -> Ptr MagickPixelPacket -> IO ()Source

PixelSetMagickColor() sets the color of the pixel wand.

newPixelWand :: IO (Ptr PixelWand)Source

NewPixelWand() returns a new pixel wand.

newPixelWands :: CSize -> IO (Ptr (Ptr PixelWand))Source

NewPixelWands() returns an array of pixel wands.

pixelSetColor :: Ptr PixelWand -> CString -> IO MagickBooleanTypeSource

PixelSetColor() sets the color of the pixel wand with a string (e.g. blue, , rgb(0,0,255), cmyk(100,100,100,10), etc.).

pixelClearException :: Ptr PixelWand -> IO MagickBooleanTypeSource

PixelClearException() clear any exceptions associated with the iterator.

pixelGetException :: Ptr PixelWand -> Ptr ExceptionType -> IO CStringSource

PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.

pixelGetExceptionType :: Ptr PixelWand -> IO ExceptionTypeSource

PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.

pixelGetColorAsString :: Ptr PixelWand -> IO CStringSource

PixelGetColorAsString() returnsd the color of the pixel wand as a string.

pixelGetColorAsNormalizedString :: Ptr PixelWand -> IO CStringSource

PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.

pixelSetRed :: Ptr PixelWand -> CDouble -> IO ()Source

PixelGetRed) returns the normalized red color of the pixel wand.

pixelSetRedQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetRedQuantum() sets the red color of the pixel wand.

pixelGetRed :: Ptr PixelWand -> IO CDoubleSource

PixelGetRed) returns the normalized red color of the pixel wand.

pixelGetRedQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetRedQuantum() returns the red color of the pixel wand.

pixelGetGreen :: Ptr PixelWand -> IO CDoubleSource

PixelGetGreen) returns the normalized green color of the pixel wand.

pixelGetGreenQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetGreenQuantum() returns the green color of the pixel wand.

pixelSetGreen :: Ptr PixelWand -> CDouble -> IO ()Source

PixelSetGreen() sets the green color of the pixel wand.

pixelSetGreenQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetGreenQuantum() sets the green color of the pixel wand.

pixelGetBlue :: Ptr PixelWand -> IO CDoubleSource

PixelGetBlue() returns the normalized blue color of the pixel wand.

pixelGetBlueQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetBlueQuantum() returns the blue color of the pixel wand.

pixelSetBlueQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetBlueQuantum() sets the blue color of the pixel wand.

isPixelWandSimilarSource

Arguments

:: Ptr PixelWand 
-> Ptr PixelWand 
-> CDouble

any two colors that are less than or equal to this distance squared are consider similar

-> IO MagickBooleanType 

IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.

pixelGetCyan :: Ptr PixelWand -> IO CDoubleSource

PixelGetCyan) returns the normalized blue color of the pixel wand.

pixelGetCyanQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetCyanQuantum() returns the blue color of the pixel wand.

pixelSetCyanQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetCyanQuantum() sets the blue color of the pixel wand.

pixelGetMagenta :: Ptr PixelWand -> IO CDoubleSource

PixelGetMagenta) returns the normalized blue color of the pixel wand.

pixelGetMagentaQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetMagentaQuantum() returns the blue color of the pixel wand.

pixelSetMagentaQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetMagentaQuantum() sets the blue color of the pixel wand.

pixelGetYellow :: Ptr PixelWand -> IO CDoubleSource

PixelGetYellow) returns the normalized blue color of the pixel wand.

pixelGetYellowQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetYellowQuantum() returns the blue color of the pixel wand.

pixelSetYellowQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetYellowQuantum() sets the blue color of the pixel wand.

pixelGetBlack :: Ptr PixelWand -> IO CDoubleSource

PixelGetBlack) returns the normalized blue color of the pixel wand.

pixelGetBlackQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetBlackQuantum() returns the blue color of the pixel wand.

pixelSetBlackQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetBlackQuantum() sets the blue color of the pixel wand.

pixelGetAlpha :: Ptr PixelWand -> IO CDoubleSource

PixelGetAlpha) returns the normalized blue color of the pixel wand.

pixelGetAlphaQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetAlphaQuantum() returns the blue color of the pixel wand.

pixelSetAlphaQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetAlphaQuantum() sets the blue color of the pixel wand.

pixelGetOpacity :: Ptr PixelWand -> IO CDoubleSource

PixelGetOpacity) returns the normalized blue color of the pixel wand.

pixelGetOpacityQuantum :: Ptr PixelWand -> IO QuantumSource

PixelGetOpacityQuantum() returns the blue color of the pixel wand.

pixelSetOpacityQuantum :: Ptr PixelWand -> Quantum -> IO ()Source

PixelSetOpacityQuantum() sets the blue color of the pixel wand.

pixelGetColorCount :: Ptr PixelWand -> IO CSizeSource

PixelGetColorCount() returns the color count associated with this color.

pixelSetColorCount :: Ptr PixelWand -> CSize -> IO ()Source

PixelSetColorCount() sets the color count of the pixel wand.

pixelSetHSL :: Ptr PixelWand -> CDouble -> CDouble -> CDouble -> IO ()Source

PixelSetHSL() sets the normalized HSL color of the pixel wand.

pixelSetColorFromWand :: Ptr PixelWand -> Ptr PixelWand -> IO ()Source

PixelSetColorFromWand() sets the color of the pixel wand.

pixelGetIndex :: Ptr PixelWand -> IO IndexPacketSource

PixelGetIndex() returns the colormap index from the pixel wand.

pixelSetIndex :: Ptr PixelWand -> IndexPacket -> IO ()Source

PixelSetIndex() sets the colormap index of the pixel wand.

pixelGetQuantumColor :: Ptr PixelWand -> Ptr PixelPacket -> IO ()Source

PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.

pixelSetQuantumColor :: Ptr PixelWand -> Ptr PixelPacket -> IO ()Source

PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.

pixelGetFuzz :: Ptr PixelWand -> IO CDoubleSource

PixelGetFuzz() returns the normalized fuzz value of the pixel wand.

pixelSetFuzz :: Ptr PixelWand -> CDouble -> IO ()Source

PixelSetFuzz() sets the fuzz value of the pixel wand.