imagemagick-0.0.3.6: bindings to imagemagick library

Safe HaskellNone
LanguageHaskell98

Graphics.ImageMagick.MagickWand.FFI.PixelWand

Synopsis

Documentation

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

DestroyPixelWand() deallocates resources associated with a PixelWand.

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

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

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

PixelSetMagickColor() sets the color of the pixel wand.

newPixelWand :: IO (Ptr PixelWand)

NewPixelWand() returns a new pixel wand.

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

NewPixelWands() returns an array of pixel wands.

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

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

pixelClearException :: Ptr PixelWand -> IO MagickBooleanType

PixelClearException() clear any exceptions associated with the iterator.

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

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

pixelGetExceptionType :: Ptr PixelWand -> IO ExceptionType

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

pixelGetColorAsString :: Ptr PixelWand -> IO CString

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

pixelGetColorAsNormalizedString :: Ptr PixelWand -> IO CString

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

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

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

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

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

pixelGetRed :: Ptr PixelWand -> IO CDouble

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

pixelGetRedQuantum :: Ptr PixelWand -> IO Quantum

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

pixelGetGreen :: Ptr PixelWand -> IO CDouble

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

pixelGetGreenQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

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

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

pixelGetBlue :: Ptr PixelWand -> IO CDouble

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

pixelGetBlueQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

isPixelWandSimilar

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 CDouble

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

pixelGetCyanQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetMagenta :: Ptr PixelWand -> IO CDouble

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

pixelGetMagentaQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetYellow :: Ptr PixelWand -> IO CDouble

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

pixelGetYellowQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetBlack :: Ptr PixelWand -> IO CDouble

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

pixelGetBlackQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetAlpha :: Ptr PixelWand -> IO CDouble

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

pixelGetAlphaQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetOpacity :: Ptr PixelWand -> IO CDouble

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

pixelGetOpacityQuantum :: Ptr PixelWand -> IO Quantum

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

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

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

pixelGetColorCount :: Ptr PixelWand -> IO CSize

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

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

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

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

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

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

PixelSetColorFromWand() sets the color of the pixel wand.

pixelGetIndex :: Ptr PixelWand -> IO IndexPacket

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

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

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

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

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

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

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

pixelGetFuzz :: Ptr PixelWand -> IO CDouble

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

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

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