### Namespace

# GdkPixdata – 2.0

Inline image data

Version | 2.44.6
Authors | GTK Development Team
License | GPL-2.1-or-later
Website | https://www.gtk.org
Source | https://gitlab.gnome.org/GNOME/gdk-pixbuf/

#### Build

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

#### Dependencies

GObject—2.0 | The base type system library
| Browse documentation
GdkPixbuf—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 `gdk_pixdata_to_csource()` to determine the form of C source to be generated. The three values `GDK_PIXDATA_DUMP_PIXDATA_STREAM`, `GDK_PIXDATA_DUMP_PIXDATA_STRUCT` and `GDK_PIXDATA_DUMP_MACROS` are mutually exclusive, as are `GDK_PIXBUF_DUMP_GTYPES` and `GDK_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 `GdkPixdata` 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 `GdkPixdata` to a `GdkPixbuf`. deprecated: 2.32

#### Constants

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