Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
BABL.FFI.Format
- data BablFormatPtr = BablFormatPtr {}
- type BablFormatDummy = Ptr ()
- data ComponentModel
- data ComponentFormat
- data PixelFormat = PixelFormat {}
- c_babl_format :: CString -> IO BablFormatDummy
- c_babl_get_bpp :: BablFormatDummy -> IO CInt
- c_babl_format_get_n_components :: BablFormatDummy -> IO CInt
Documentation
data BablFormatPtr #
Constructors
BablFormatPtr | |
Fields |
type BablFormatDummy = Ptr () #
The dummy Pointer behind BablFormatPtr
. Do not peek
or poke
data ComponentModel #
List of component models af babl formats.
Constructors
RGB | |
RGBA | |
RaGaBaA | |
R'G'B' | |
R'G'B'A | |
R'aG'aB'aA | |
Y | |
YA | |
YaA | |
Y' | |
Y'A | |
Y'aA | |
Y'CbCr | |
Y'CbCrA | |
HSVA | |
HSV | |
CMYK | |
CMY | |
CIELab | |
CIELabAlpha | |
CIELCHab | |
CIELCHabAlpha | |
HSLA | |
HSL | |
Y'CbCr709 | |
Y'CbCrA709 | |
Cairo |
Instances
Show ComponentModel # | |
data PixelFormat #
Constructors
PixelFormat | |
Fields |
Arguments
:: CString | Format name |
-> IO BablFormatDummy |
create a new predefined BABL format
Arguments
:: BablFormatDummy | Format to be drawn from |
-> IO CInt |
create and define your own BABL format foreign import ccall unsafe "babl.h babl_format_new"
Get the number of bytes per pixel from a format.
c_babl_format_get_n_components :: BablFormatDummy -> IO CInt #