gi-gdkpixbuf-2.0.28: GdkPixbuf bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GdkPixbuf.Enums

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

Instances

Instances details
Enum Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Eq Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Ord Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

BoxedEnum Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

TypedObject Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Methods

glibType :: IO GType #

HasParentTypes Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes Colorspace Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes Colorspace = '[] :: [Type]

InterpType

data InterpType Source #

Interpolation modes for scaling functions.

The GDK_INTERP_NEAREST mode is the fastest scaling method, but has horrible quality when scaling down; GDK_INTERP_BILINEAR 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

Instances

Instances details
Enum InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Eq InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Ord InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

BoxedEnum InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

TypedObject InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Methods

glibType :: IO GType #

HasParentTypes InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes InterpType Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes InterpType = '[] :: [Type]

PixbufAlphaMode

data PixbufAlphaMode Source #

Deprecated: (Since version 2.42)There is no user of GdkPixbufAlphaMode in GdkPixbuf, and the Xlib utility functions have been split out to their own library, gdk-pixbuf-xlib

Control the alpha channel for drawables.

These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() in gdk-pixbuf-xlib 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

Instances details
Enum PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show 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

BoxedEnum PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

TypedObject PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Methods

glibType :: IO GType #

HasParentTypes PixbufAlphaMode Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes 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

Instances

Instances details
Enum PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Eq PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Ord PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

BoxedEnum PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

TypedObject PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Methods

glibType :: IO GType #

GErrorClass PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

HasParentTypes PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes PixbufError Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes PixbufError = '[] :: [Type]

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

Instances

Instances details
Enum PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Show PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Eq PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Ord PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

BoxedEnum PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

TypedObject PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

Methods

glibType :: IO GType #

HasParentTypes PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums

type ParentTypes PixbufRotation Source # 
Instance details

Defined in GI.GdkPixbuf.Enums