| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
BABL.Format
Description
This module contains the pixel formats supprted my babl
- data PixelFormat = PixelFormat {}
- data ComponentModel
- data ComponentFormat
- data BablFormatPtr
- babl_format :: PixelFormat -> IO BablFormatPtr
- babl_get_bpp :: PixelFormat -> IO Int
- babl_format_by_str :: String -> IO BablFormatPtr
- babl_components_per_pixel :: PixelFormat -> Int
Documentation
data PixelFormat #
Constructors
| PixelFormat | |
Fields | |
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 BablFormatPtr #
Arguments
| :: PixelFormat | Format to be used |
| -> IO BablFormatPtr | Pointer to specified format |
Create a BablFormatPtr to pass around to other functions.
Arguments
| :: PixelFormat | Format to peek from |
| -> IO Int |
Peek the number of bytes per pixel from a format.
Arguments
| :: String | Input string |
| -> IO BablFormatPtr |
Build BablFormatPtr by input String
babl_components_per_pixel :: PixelFormat -> Int #