-
Notifications
You must be signed in to change notification settings - Fork 23
/
ColorspaceType.hsc
39 lines (35 loc) · 1.32 KB
/
ColorspaceType.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Graphics.ImageMagick.MagickCore.Types.FFI.ColorspaceType
where
import Foreign.C.Types
import Foreign.Storable
#include <magick/MagickCore.h>
newtype ColorspaceType = ColorspaceType { unColorspaceType :: CInt }
deriving (Eq, Show, Storable)
#{enum ColorspaceType, ColorspaceType,
undefinedColorspace = UndefinedColorspace,
rgbColorspace = RGBColorspace,
grayColorspace = GRAYColorspace,
transparentColorspace = TransparentColorspace,
ohtaColorspace = OHTAColorspace,
labColorspace = LabColorspace,
xyzColorspace = XYZColorspace,
ycbCrColorspace = YCbCrColorspace,
yccColorspace = YCCColorspace,
yiqColorspace = YIQColorspace,
ypbprColorspace = YPbPrColorspace,
yuvColorspace = YUVColorspace,
cmykColorspace = CMYKColorspace,
srgbColorspace = sRGBColorspace,
hsbColorspace = HSBColorspace,
hslColorspace = HSLColorspace,
hwbColorspace = HWBColorspace,
rec601LumaColorspace = Rec601LumaColorspace,
rec601YCbCrColorspace = Rec601YCbCrColorspace,
rec709LumaColorspace = Rec709LumaColorspace,
rec709YCbCrColorspace = Rec709YCbCrColorspace,
logColorspace = LogColorspace,
cmyColorspace = CMYColorspace
}