Namespace

CdkPixbuf – 2.0

Image loading library

Version2.44.5
AuthorsCTK Development Team
LicenseGPL-2.1-or-later
Websitehttps://github.com/cafe-desktop/ctk
Sourcehttps://gitlab.gnome.org/GNOME/cdk-pixbuf/

Build

C headerscdk-pixbuf/cdk-pixbuf.h
pkg-config filescdk-pixbuf-2.0

Dependencies

GObject—2.0 The base type system library
Browse documentation

Additional documentation

Classes

Pixbuf

A pixel buffer.

PixbufAnimation

An opaque object representing an animation.

deprecated: 2.44 

PixbufAnimationIter

An opaque object representing an iterator which points to a certain position in an animation.

deprecated: 2.44 

PixbufLoader

Incremental image loader.

PixbufNonAnim

PixbufSimpleAnim

An opaque struct representing a simple animation.

PixbufSimpleAnimIter

Structs

PixbufFormat

A CdkPixbufFormat contains information about the image format accepted by a module.

since: 2.2

PixbufModule

A CdkPixbufModule contains the necessary functions to load and save images in a certain file format.

PixbufModulePattern

The signature prefix for a module.

since: 2.2

Enumerations

Colorspace

This enumeration defines the color spaces that are supported by the cdk-pixbuf library.

InterpType

Interpolation modes for scaling functions.

PixbufAlphaMode

Control the alpha channel for drawables.

deprecated: 2.42 

PixbufRotation

The possible rotations which can be passed to cdk_pixbuf_rotate_simple().

Bitfields

PixbufFormatFlags

Flags which allow a module to specify further details about the supported operations.

since: 2.2

Error Domains

PixbufError

An error code in the CDK_PIXBUF_ERROR domain.

Callbacks

PixbufDestroyNotify

A function of this type is responsible for freeing the pixel array of a pixbuf.

PixbufModuleBeginLoadFunc

Sets up the image loading state.

PixbufModuleFillInfoFunc

Defines the type of the function used to fill a CdkPixbufFormat structure with information about a module.

since: 2.2

PixbufModuleFillVtableFunc

Defines the type of the function used to set the vtable of a CdkPixbufModule when it is loaded.

since: 2.2

PixbufModuleIncrementLoadFunc

Incrementally loads a buffer into the image data.

PixbufModuleLoadAnimationFunc

Loads a file from a standard C file stream into a new CdkPixbufAnimation.

PixbufModuleLoadFunc

Loads a file from a standard C file stream into a new CdkPixbuf.

PixbufModuleLoadXpmDataFunc

Loads XPM data into a new CdkPixbuf.

PixbufModulePreparedFunc

Defines the type of the function that gets called once the initial setup of pixbuf is done.

since: 2.2

PixbufModuleSaveCallbackFunc

Saves a CdkPixbuf by calling the provided function.

PixbufModuleSaveFunc

Saves a CdkPixbuf into a standard C file stream.

PixbufModuleSaveOptionSupportedFunc

Checks whether the given option_key is supported when saving.

PixbufModuleSizeFunc

Defines the type of the function that gets called once the size of the loaded image is known.

since: 2.2

PixbufModuleStopLoadFunc

Finalizes the image loading state.

PixbufModuleUpdatedFunc

Defines the type of the function that gets called every time a region of pixbuf is updated.

since: 2.2

PixbufSaveFunc

Save functions used by cdk_pixbuf_save_to_callback().

since: 2.4

Function Macros

PIXBUF_CHECK_VERSION

Macro to test the version of CdkPixbuf being compiled against.

since: 2.36

PIXBUF_DEPRECATED_IN_2_44_FOR

Constants

PIXBUF_MAJOR

Major version of cdk-pixbuf library, that is the “0” in “0.8.2” for example.

PIXBUF_MICRO

Micro version of cdk-pixbuf library, that is the “2” in “0.8.2” for example.

PIXBUF_MINOR

Minor version of cdk-pixbuf library, that is the “8” in “0.8.2” for example.

PIXBUF_VERSION

Contains the full version of CdkPixbuf as a string.