2001-10-08 21:25:33 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Inline data
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2001-10-09 22:35:11 +00:00
|
|
|
Functions for inlined pixbuf handling.
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
2005-05-08 06:25:46 +00:00
|
|
|
<para>
|
|
|
|
Using #GdkPixdata, images can be compiled into an application,
|
|
|
|
making it unnecessary to refer to external image files at runtime.
|
|
|
|
&gdk-pixbuf; includes a utility named gdk-pixbuf-csource, which
|
|
|
|
can be used to convert image files into #GdkPixdata structures suitable
|
|
|
|
for inclusion in C sources. To convert the #GdkPixdata structures back
|
|
|
|
into #GdkPixbuf<!-- -->s, use gdk_pixbuf_from_pixdata.
|
|
|
|
</para>
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-05-08 06:25:46 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2001-10-08 21:25:33 +00:00
|
|
|
<!-- ##### STRUCT GdkPixdata ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@magic:
|
|
|
|
@length:
|
|
|
|
@pixdata_type:
|
|
|
|
@rowstride:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
@pixel_data:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkPixdataType ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@GDK_PIXDATA_COLOR_TYPE_RGB:
|
|
|
|
@GDK_PIXDATA_COLOR_TYPE_RGBA:
|
|
|
|
@GDK_PIXDATA_COLOR_TYPE_MASK:
|
|
|
|
@GDK_PIXDATA_SAMPLE_WIDTH_8:
|
|
|
|
@GDK_PIXDATA_SAMPLE_WIDTH_MASK:
|
|
|
|
@GDK_PIXDATA_ENCODING_RAW:
|
|
|
|
@GDK_PIXDATA_ENCODING_RLE:
|
|
|
|
@GDK_PIXDATA_ENCODING_MASK:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GdkPixdataDumpType ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@GDK_PIXDATA_DUMP_PIXDATA_STREAM:
|
|
|
|
@GDK_PIXDATA_DUMP_PIXDATA_STRUCT:
|
|
|
|
@GDK_PIXDATA_DUMP_MACROS:
|
|
|
|
@GDK_PIXDATA_DUMP_GTYPES:
|
|
|
|
@GDK_PIXDATA_DUMP_CTYPES:
|
|
|
|
@GDK_PIXDATA_DUMP_STATIC:
|
|
|
|
@GDK_PIXDATA_DUMP_CONST:
|
|
|
|
@GDK_PIXDATA_DUMP_RLE_DECODER:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
<!-- ##### MACRO GDK_PIXBUF_MAGIC_NUMBER ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
|
2001-10-08 21:25:33 +00:00
|
|
|
<!-- ##### MACRO GDK_PIXDATA_HEADER_LENGTH ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
|
2001-10-08 21:25:33 +00:00
|
|
|
<!-- ##### FUNCTION gdk_pixdata_from_pixbuf ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@pixdata:
|
|
|
|
@pixbuf:
|
|
|
|
@use_rle:
|
|
|
|
@Returns:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_from_pixdata ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@pixdata:
|
|
|
|
@copy_pixels:
|
|
|
|
@error:
|
|
|
|
@Returns:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixdata_serialize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@pixdata:
|
|
|
|
@stream_length_p:
|
|
|
|
@Returns:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixdata_deserialize ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@pixdata:
|
|
|
|
@stream_length:
|
|
|
|
@stream:
|
|
|
|
@error:
|
|
|
|
@Returns:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixdata_to_csource ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-10-13 05:52:14 +00:00
|
|
|
@pixdata:
|
|
|
|
@name:
|
|
|
|
@dump_type:
|
|
|
|
@Returns:
|
2001-10-08 21:25:33 +00:00
|
|
|
|
|
|
|
|