CdkPixdata – 2.0
Description: Reference for CdkPixdata-2.0

### Namespace

# CdkPixdata – 2.0

Inline image data

Version | 2.44.5
Authors | CTK Development Team
License | GPL-2.1-or-later
Website | https://github.com/cafe-desktop/ctk
Source | https://gitlab.gnome.org/GNOME/cdk-pixbuf/

#### Build

C headers | `cdk-pixbuf/cdk-pixdata.h`
pkg-config files | `cdk-pixbuf-2.0`

#### Dependencies

GObject—2.0 | The base type system library
| Browse documentation
CdkPixbuf—2.0 | Image loading library
| Browse documentation

#### Structs

Pixdata | A pixel buffer suitable for serialization and streaming. deprecated: 2.32

#### Bitfields

PixdataDumpType | An enumeration which is used by `cdk_pixdata_to_csource()` to determine the form of C source to be generated. The three values `CDK_PIXDATA_DUMP_PIXDATA_STREAM`, `CDK_PIXDATA_DUMP_PIXDATA_STRUCT` and `CDK_PIXDATA_DUMP_MACROS` are mutually exclusive, as are `CDK_PIXBUF_DUMP_GTYPES` and `CDK_PIXBUF_DUMP_CTYPES`. The remaining elements are optional flags that can be freely added. deprecated: 2.32
PixdataType | An enumeration containing three sets of flags for a `CdkPixdata` struct: one for the used colorspace, one for the width of the samples and one for the encoding of the pixel data. deprecated: 2.32

#### Functions

pixbuf_from_pixdata | Converts a `CdkPixdata` to a `CdkPixbuf`. deprecated: 2.32

#### Constants

PIXBUF_MAGIC_NUMBER | Magic number for `CdkPixdata` structures.
PIXDATA_HEADER_LENGTH | The length of a `CdkPixdata` structure without the `pixel_data` pointer. deprecated: 2.32