-
Notifications
You must be signed in to change notification settings - Fork 23
/
Image.hsc
24 lines (22 loc) · 799 Bytes
/
Image.hsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
module Graphics.ImageMagick.MagickCore.Types.FFI.Image
where
import Foreign.C.Types
#include <magick/MagickCore.h>
newtype ImageType = ImageType { unImageType :: CInt }
deriving (Eq, Show)
#{enum ImageType, ImageType
, undefinedType = UndefinedType
, bilevelType = BilevelType
, grayscaleType = GrayscaleType
, grayscaleMatteType = GrayscaleMatteType
, paletteType = PaletteType
, paletteMatteType = PaletteMatteType
, trueColorType = TrueColorType
, trueColorMatteType = TrueColorMatteType
, colorSeparationType = ColorSeparationType
, colorSeparationMatteType = ColorSeparationMatteType
, optimizeType = OptimizeType
, paletteBilevelMatteType = PaletteBilevelMatteType
}