babl-0.0.0.1: Initial project template from stack

Safe HaskellSafe
LanguageHaskell2010

BABL.Format

Description

This module contains the pixel formats supprted my babl

Synopsis

Documentation

data ComponentModel #

List of component models af babl formats.

Instances

Show ComponentModel # 

Methods

showsPrec :: Int -> ComponentModel -> ShowS

show :: ComponentModel -> String

showList :: [ComponentModel] -> ShowS

data ComponentFormat #

Byte format of a colour component.

Instances

Show ComponentFormat # 

Methods

showsPrec :: Int -> ComponentFormat -> ShowS

show :: ComponentFormat -> String

showList :: [ComponentFormat] -> ShowS

babl_format #

Arguments

:: PixelFormat

Format to be used

-> IO BablFormatPtr

Pointer to specified format

Create a BablFormatPtr to pass around to other functions.

babl_get_bpp #

Arguments

:: PixelFormat

Format to peek from

-> IO Int 

Peek the number of bytes per pixel from a format.

babl_format_by_str #

Arguments

:: String

Input string

-> IO BablFormatPtr 

Build BablFormatPtr by input String