-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | FFI bindings for the GraphicsMagick library
--   
--   FFI bindings for the GraphicsMagick library
@package hsmagick
@version 0.5

module Graphics.Transform.Magick.Test

-- | Ad hoc unit tests. Should really use HUnit.
runAllTests :: IO ()

module Graphics.Transform.Magick.Types
data HImage
HImage :: ForeignPtr HImage_ -> ImageNotLoaded -> HImage
image :: HImage -> ForeignPtr HImage_
otherInfo :: HImage -> ImageNotLoaded
data ImageNotLoaded
ImageNotLoaded :: ForeignPtr HImageInfo -> ForeignPtr ExceptionInfo -> ImageNotLoaded
imageInfo :: ImageNotLoaded -> ForeignPtr HImageInfo
exceptionInfo :: ImageNotLoaded -> ForeignPtr ExceptionInfo
data Rectangle
Rectangle :: Word -> Word -> Int -> Int -> Rectangle
width :: Rectangle -> Word
height :: Rectangle -> Word
x :: Rectangle -> Int
y :: Rectangle -> Int
data AffineMatrix
AffineMatrix :: Double -> Double -> Double -> Double -> Double -> Double -> AffineMatrix
sx :: AffineMatrix -> Double
rx :: AffineMatrix -> Double
ry :: AffineMatrix -> Double
sy :: AffineMatrix -> Double
tx :: AffineMatrix -> Double
ty :: AffineMatrix -> Double
data PixelPacket a
PixelPacket :: a -> a -> a -> a -> PixelPacket a
red :: PixelPacket a -> a
green :: PixelPacket a -> a
blue :: PixelPacket a -> a
opacity :: PixelPacket a -> a
data Level
Level :: Double -> Double -> Double -> Level
black :: Level -> Double
mid :: Level -> Double
white :: Level -> Double
data Modulation
Modulation :: Double -> Double -> Double -> Modulation
brightness :: Modulation -> Double
saturation :: Modulation -> Double
hue :: Modulation -> Double
data Negation
AllPixels :: Negation
GrayscalePixels :: Negation
type PixelPacketByte = PixelPacket Word8
data ChannelType
UndefinedChannel :: ChannelType
RedChannel :: ChannelType
CyanChannel :: ChannelType
GreenChannel :: ChannelType
MagentaChannel :: ChannelType
BlueChannel :: ChannelType
YellowChannel :: ChannelType
OpacityChannel :: ChannelType
BlackChannel :: ChannelType
MatteChannel :: ChannelType
getImage :: HImage -> ForeignPtr HImage_
getImageInfo :: HImage -> ForeignPtr HImageInfo
getExceptionInfo :: HImage -> ForeignPtr ExceptionInfo
mkUnloadedImage :: ForeignPtr HImageInfo -> ForeignPtr ExceptionInfo -> ImageNotLoaded
data FilterTypes
UndefinedFilter :: FilterTypes
PointFilter :: FilterTypes
BoxFilter :: FilterTypes
TriangleFilter :: FilterTypes
HermiteFilter :: FilterTypes
HanningFilter :: FilterTypes
HammingFilter :: FilterTypes
BlackmanFilter :: FilterTypes
GaussianFilter :: FilterTypes
QuadraticFilter :: FilterTypes
CubicFilter :: FilterTypes
CatromFilter :: FilterTypes
MitchellFilter :: FilterTypes
LacrosFilter :: FilterTypes
BesselFilter :: FilterTypes
SincFilter :: FilterTypes
data CompositeOp
Undefined :: CompositeOp
Over :: CompositeOp
In :: CompositeOp
Out :: CompositeOp
Atop :: CompositeOp
Xor :: CompositeOp
Plus :: CompositeOp
Minus :: CompositeOp
Add :: CompositeOp
Subtract :: CompositeOp
Difference :: CompositeOp
Multiply :: CompositeOp
Bumpmap :: CompositeOp
Copy :: CompositeOp
CopyRed :: CompositeOp
CopyGreen :: CompositeOp
CopyBlue :: CompositeOp
CopyOpacity :: CompositeOp
Clear :: CompositeOp
Dissolve :: CompositeOp
Displace :: CompositeOp
Modulate :: CompositeOp
Threshold :: CompositeOp
No :: CompositeOp
Darken :: CompositeOp
Lighten :: CompositeOp
Hue :: CompositeOp
Saturate :: CompositeOp
Colorize :: CompositeOp
Luminize :: CompositeOp
Screen :: CompositeOp
Overlay :: CompositeOp
CopyCyan :: CompositeOp
CopyMagenta :: CompositeOp
CopyYellow :: CompositeOp
CopyBlack :: CompositeOp
data Contrast
IncreaseContrast :: Contrast
DecreaseContrast :: Contrast
data ImageCharacteristics
ImageC :: Bool -> Bool -> Bool -> Bool -> Bool -> ImageCharacteristics
cmyk :: ImageCharacteristics -> Bool
grayscale :: ImageCharacteristics -> Bool
mONOCHROME :: ImageCharacteristics -> Bool
opaque :: ImageCharacteristics -> Bool
palette :: ImageCharacteristics -> Bool
data ImageStatistics
ImageS :: ImageChannelStatistics -> ImageChannelStatistics -> ImageChannelStatistics -> ImageChannelStatistics -> ImageStatistics
red_ :: ImageStatistics -> ImageChannelStatistics
green_ :: ImageStatistics -> ImageChannelStatistics
blue_ :: ImageStatistics -> ImageChannelStatistics
opacity_ :: ImageStatistics -> ImageChannelStatistics
data ImageChannelStatistics
ImageCS :: Double -> Double -> Double -> Double -> Double -> ImageChannelStatistics
maximum :: ImageChannelStatistics -> Double
minimum :: ImageChannelStatistics -> Double
mean :: ImageChannelStatistics -> Double
standard_deviation :: ImageChannelStatistics -> Double
variance :: ImageChannelStatistics -> Double
data SegmentInfo
SegmentInfo :: Double -> Double -> Double -> Double -> SegmentInfo
x1 :: SegmentInfo -> Double
y1 :: SegmentInfo -> Double
x2 :: SegmentInfo -> Double
y2 :: SegmentInfo -> Double
data ImageOrder
LeftToRight :: ImageOrder
TopToBottom :: ImageOrder
data StorageType
CharPixel :: StorageType
ShortPixel :: StorageType
IntegerPixel :: StorageType
LongPixel :: StorageType
FloatPixel :: StorageType
DoublePixel :: StorageType
class Storable b => StorablePixel a b | a -> b
storageType :: StorablePixel a b => a -> StorageType
marshalPixel :: StorablePixel a b => a -> b
unmarshalPixel :: StorablePixel a b => b -> a
newtype PixMap
PixMap :: [QuantumType] -> PixMap
pixelSize :: PixMap -> Int
data QuantumType
R :: QuantumType
G :: QuantumType
B :: QuantumType
A :: QuantumType
O :: QuantumType
T :: QuantumType
C :: QuantumType
Y :: QuantumType
M :: QuantumType
K :: QuantumType
I :: QuantumType
P :: QuantumType
data QuantumType2
UndefinedQuantum :: QuantumType2
IndexQuantum :: QuantumType2
GrayQuantum :: QuantumType2
IndexAlphaQuantum :: QuantumType2
GrayAlphaQuantum :: QuantumType2
RedQuantum :: QuantumType2
CyanQuantum :: QuantumType2
GreenQuantum :: QuantumType2
YellowQuantum :: QuantumType2
BlueQuantum :: QuantumType2
MagentaQuantum :: QuantumType2
AlphaQuantum :: QuantumType2
BlackQuantum :: QuantumType2
RGBQuantum :: QuantumType2
RGBAQuantum :: QuantumType2
CMYKQuantum :: QuantumType2
CMYKAQuantum :: QuantumType2
CIEYQuantum :: QuantumType2
CIEXYZQuantum :: QuantumType2
data ExceptionInfo
ExceptionInfo :: ExceptionType -> CString -> CString -> CInt -> CString -> CString -> CULong -> CULong -> ExceptionInfo
severity :: ExceptionInfo -> ExceptionType
reason :: ExceptionInfo -> CString
description :: ExceptionInfo -> CString
error_number :: ExceptionInfo -> CInt
mODULE :: ExceptionInfo -> CString
function :: ExceptionInfo -> CString
line :: ExceptionInfo -> CULong
signature__ :: ExceptionInfo -> CULong
type ExportPixelAreaOptions = Word32
type ExportPixelAreaInfo = Word32
type ImportPixelAreaOptions = Word32
type ImportPixelAreaInfo = Word32
type ImagePtr = Ptr Image
type Image = Word32
data CharArray
CharArray :: CharArray
type CompressionType = Word32
type InterlaceType = Word32
type EndianType = Word32
type ResolutionType = Word32
type ColorspaceType = Word32
type ImageType = Word32
type StreamHandler = Word32
type PreviewType = Word32
type ClassType = Word32
type ChromaticityInfo = Word32
type OrientationType = Word32
type RenderingIntent = Word32
type GravityType = Word32
type DisposeType = Word32
type ErrorInfo = Word32
type TimerInfo = Word32
type CacheInfoPtr = Word32
type ImageAttributePtr = Word32
type Ascii85InfoPtr = Word32
type BlobInfoPtr = Word32
type SemaphoreInfoPtr = Word32
type ExceptionType = CUInt
data HImageInfo
HImageInfo :: CompressionType -> CUInt -> CUInt -> CUInt -> CULong -> CULong -> CULong -> CString -> CString -> CString -> InterlaceType -> EndianType -> ResolutionType -> CULong -> CString -> CString -> CString -> CString -> CString -> CDouble -> CDouble -> PixelPacketByte -> PixelPacketByte -> PixelPacketByte -> PixelPacketByte -> CUInt -> CUInt -> CUInt -> ColorspaceType -> ImageType -> CLong -> CUInt -> CString -> CString -> CString -> Ptr CFile -> String -> String -> CString -> CString -> Ptr Image -> CUInt -> PreviewType -> CUInt -> CString -> CSize -> CString -> CString -> CULong -> HImageInfo
compression :: HImageInfo -> CompressionType
temporary :: HImageInfo -> CUInt
adjoin :: HImageInfo -> CUInt
antialias :: HImageInfo -> CUInt
subimage :: HImageInfo -> CULong
subrange :: HImageInfo -> CULong
depth :: HImageInfo -> CULong
size :: HImageInfo -> CString
tile :: HImageInfo -> CString
page :: HImageInfo -> CString
interlace :: HImageInfo -> InterlaceType
endian :: HImageInfo -> EndianType
units :: HImageInfo -> ResolutionType
quality :: HImageInfo -> CULong
sampling_factor :: HImageInfo -> CString
server_name :: HImageInfo -> CString
font :: HImageInfo -> CString
texture :: HImageInfo -> CString
density :: HImageInfo -> CString
pointsize :: HImageInfo -> CDouble
fuzz :: HImageInfo -> CDouble
pen :: HImageInfo -> PixelPacketByte
background_color :: HImageInfo -> PixelPacketByte
border_color :: HImageInfo -> PixelPacketByte
matte_color :: HImageInfo -> PixelPacketByte
dither :: HImageInfo -> CUInt
monochrome :: HImageInfo -> CUInt
progress :: HImageInfo -> CUInt
colorspace :: HImageInfo -> ColorspaceType
tYPE :: HImageInfo -> ImageType
group :: HImageInfo -> CLong
verbose :: HImageInfo -> CUInt
view :: HImageInfo -> CString
authenticate :: HImageInfo -> CString
client_data :: HImageInfo -> CString
file :: HImageInfo -> Ptr CFile
magick :: HImageInfo -> String
filename :: HImageInfo -> String
cache :: HImageInfo -> CString
definitions :: HImageInfo -> CString
attributes :: HImageInfo -> Ptr Image
ping :: HImageInfo -> CUInt
preview_type :: HImageInfo -> PreviewType
affirm :: HImageInfo -> CUInt
blob :: HImageInfo -> CString
lENGTH :: HImageInfo -> CSize
unique :: HImageInfo -> CString
zero :: HImageInfo -> CString
signature :: HImageInfo -> CULong
data HImage_
HImage_ :: ClassType -> ColorspaceType -> CompressionType -> CUInt -> CUInt -> CULong -> CULong -> CUInt -> CUInt -> CIntPtr -> PixelPacketByte -> PixelPacketByte -> PixelPacketByte -> CDouble -> ChromaticityInfo -> OrientationType -> RenderingIntent -> ResolutionType -> CString -> CString -> CString -> CLong -> CDouble -> CDouble -> Rectangle -> Rectangle -> CDouble -> CDouble -> FilterTypes -> InterlaceType -> EndianType -> GravityType -> CompositeOp -> DisposeType -> CULong -> CULong -> CULong -> CULong -> CLong -> ErrorInfo -> TimerInfo -> CIntPtr -> String -> String -> String -> CULong -> ExceptionInfo -> CIntPtr -> CIntPtr -> CIntPtr -> CUInt -> CUInt -> CUInt -> CIntPtr -> CacheInfoPtr -> ImageAttributePtr -> Ascii85InfoPtr -> BlobInfoPtr -> CLong -> SemaphoreInfoPtr -> CUInt -> CIntPtr -> CULong -> HImage_
storage_class :: HImage_ -> ClassType
colorspace_ :: HImage_ -> ColorspaceType
compression_ :: HImage_ -> CompressionType
dither_ :: HImage_ -> CUInt
matte :: HImage_ -> CUInt
columns :: HImage_ -> CULong
rows :: HImage_ -> CULong
colors :: HImage_ -> CUInt
depth_ :: HImage_ -> CUInt
colormap :: HImage_ -> CIntPtr
background_color_ :: HImage_ -> PixelPacketByte
border_color_ :: HImage_ -> PixelPacketByte
matte_color_ :: HImage_ -> PixelPacketByte
gamma :: HImage_ -> CDouble
chromaticity :: HImage_ -> ChromaticityInfo
orientation :: HImage_ -> OrientationType
rendering_intent :: HImage_ -> RenderingIntent
units_ :: HImage_ -> ResolutionType
montage :: HImage_ -> CString
directory :: HImage_ -> CString
geometry :: HImage_ -> CString
offset :: HImage_ -> CLong
x_resolution :: HImage_ -> CDouble
y_resolution :: HImage_ -> CDouble
page_ :: HImage_ -> Rectangle
tile_info :: HImage_ -> Rectangle
blur :: HImage_ -> CDouble
fuzz_ :: HImage_ -> CDouble
fILTER :: HImage_ -> FilterTypes
interlace_ :: HImage_ -> InterlaceType
endian_ :: HImage_ -> EndianType
gravity :: HImage_ -> GravityType
compose :: HImage_ -> CompositeOp
dispose :: HImage_ -> DisposeType
scene :: HImage_ -> CULong
delay :: HImage_ -> CULong
iterations :: HImage_ -> CULong
total_colors :: HImage_ -> CULong
start_loop :: HImage_ -> CLong
eRROR :: HImage_ -> ErrorInfo
timer :: HImage_ -> TimerInfo
client_data_ :: HImage_ -> CIntPtr
filename_ :: HImage_ -> String
magick_filename :: HImage_ -> String
magick_ :: HImage_ -> String
magick_rows :: HImage_ -> CULong
exception :: HImage_ -> ExceptionInfo
previous :: HImage_ -> CIntPtr
next :: HImage_ -> CIntPtr
profiles :: HImage_ -> CIntPtr
is_monochrome :: HImage_ -> CUInt
is_grayscale :: HImage_ -> CUInt
taint :: HImage_ -> CUInt
clip_mask :: HImage_ -> CIntPtr
cache_ :: HImage_ -> CacheInfoPtr
attributes_ :: HImage_ -> ImageAttributePtr
ascii85 :: HImage_ -> Ascii85InfoPtr
blob_ :: HImage_ -> BlobInfoPtr
reference_count :: HImage_ -> CLong
semaphore :: HImage_ -> SemaphoreInfoPtr
logging :: HImage_ -> CUInt
list :: HImage_ -> CIntPtr
signature_ :: HImage_ -> CULong
instance Show Rectangle
instance Enum ChannelType
instance Enum FilterTypes
instance Enum CompositeOp
instance Enum ImageOrder
instance Enum StorageType
instance Show QuantumType
instance Enum QuantumType2
instance Show PixMap
instance StorablePixel Double CDouble
instance StorablePixel Float CFloat
instance StorablePixel Word64 CULong
instance StorablePixel Word32 CUInt
instance StorablePixel Word16 CUShort
instance StorablePixel Word8 CUChar

module Graphics.Transform.Magick.Images

-- | initializeMagick must be invoked by the user program before making use
--   of the library functions.
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 ()
