gi-gdkpixbuf-2.0.22: GdkPixbuf bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.GdkPixbuf.Enums

Contents

Description

 
Synopsis

Enumerations

Colorspace

data Colorspace Source #

This enumeration defines the color spaces that are supported by the gdk-pixbuf library. Currently only RGB is supported.

Constructors

ColorspaceRgb

Indicates a red/green/blue additive color space.

AnotherColorspace Int

Catch-all for unknown values

InterpType

data InterpType Source #

This enumeration describes the different interpolation modes that can be used with the scaling functions. gDKINTERPNEAREST is the fastest scaling method, but has horrible quality when scaling down. gDKINTERPBILINEAR is the best choice if you aren't sure what to choose, it has a good speed/quality balance.

  • *Note**: Cubic filtering is missing from the list; hyperbolic interpolation is just as fast and results in higher quality.

Constructors

InterpTypeNearest

Nearest neighbor sampling; this is the fastest and lowest quality mode. Quality is normally unacceptable when scaling down, but may be OK when scaling up.

InterpTypeTiles

This is an accurate simulation of the PostScript image operator without any interpolation enabled. Each pixel is rendered as a tiny parallelogram of solid color, the edges of which are implemented with antialiasing. It resembles nearest neighbor for enlargement, and bilinear for reduction.

InterpTypeBilinear

Best quality/speed balance; use this mode by default. Bilinear interpolation. For enlargement, it is equivalent to point-sampling the ideal bilinear-interpolated image. For reduction, it is equivalent to laying down small tiles and integrating over the coverage area.

InterpTypeHyper

This is the slowest and highest quality reconstruction function. It is derived from the hyperbolic filters in Wolberg's "Digital Image Warping", and is formally defined as the hyperbolic-filter sampling the ideal hyperbolic-filter interpolated image (the filter is designed to be idempotent for 1:1 pixel mapping). **Deprecated**: this interpolation filter is deprecated, as in reality it has a lower quality than the gDKINTERPBILINEAR filter (Since: 2.38)

AnotherInterpType Int

Catch-all for unknown values

PixbufAlphaMode

data PixbufAlphaMode Source #

These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() to control how the alpha channel of an image should be handled. This function can create a bilevel clipping mask (black and white) and use it while painting the image. In the future, when the X Window System gets an alpha channel extension, it will be possible to do full alpha compositing onto arbitrary drawables. For now both cases fall back to a bilevel clipping mask.

Constructors

PixbufAlphaModeBilevel

A bilevel clipping mask (black and white) will be created and used to draw the image. Pixels below 0.5 opacity will be considered fully transparent, and all others will be considered fully opaque.

PixbufAlphaModeFull

For now falls back to GDK_PIXBUF_ALPHA_BILEVEL. In the future it will do full alpha compositing.

AnotherPixbufAlphaMode Int

Catch-all for unknown values

Instances
Enum PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Eq PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Ord PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

BoxedEnum PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

PixbufError

data PixbufError Source #

An error code in the GDK_PIXBUF_ERROR domain. Many gdk-pixbuf operations can cause errors in this domain, or in the G_FILE_ERROR domain.

Constructors

PixbufErrorCorruptImage

An image file was broken somehow.

PixbufErrorInsufficientMemory

Not enough memory.

PixbufErrorBadOption

A bad option was passed to a pixbuf save module.

PixbufErrorUnknownType

Unknown image type.

PixbufErrorUnsupportedOperation

Don't know how to perform the given operation on the type of image at hand.

PixbufErrorFailed

Generic failure code, something went wrong.

PixbufErrorIncompleteAnimation

Only part of the animation was loaded.

AnotherPixbufError Int

Catch-all for unknown values

catchPixbufError :: IO a -> (PixbufError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type PixbufError. This is a specialized version of catchGErrorJustDomain.

handlePixbufError :: (PixbufError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type PixbufError. This is a specialized version of handleGErrorJustDomain.

PixbufRotation

data PixbufRotation Source #

The possible rotations which can be passed to pixbufRotateSimple. To make them easier to use, their numerical values are the actual degrees.

Constructors

PixbufRotationNone

No rotation.

PixbufRotationCounterclockwise

Rotate by 90 degrees.

PixbufRotationUpsidedown

Rotate by 180 degrees.

PixbufRotationClockwise

Rotate by 270 degrees.

AnotherPixbufRotation Int

Catch-all for unknown values