-
Notifications
You must be signed in to change notification settings - Fork 64
/
GdkPixbuf-2.0.gir
3211 lines (3211 loc) · 152 KB
/
GdkPixbuf-2.0.gir
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GModule" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<package name="gdk-pixbuf-2.0"/>
<c:include name="gdk-pixbuf/gdk-pixbuf.h"/>
<namespace name="GdkPixbuf"
version="2.0"
shared-library="libgdk_pixbuf-2.0.so.0"
c:identifier-prefixes="Gdk"
c:symbol-prefixes="gdk">
<enumeration name="Colorspace"
glib:type-name="GdkColorspace"
glib:get-type="gdk_colorspace_get_type"
c:type="GdkColorspace">
<member name="rgb"
value="0"
c:identifier="GDK_COLORSPACE_RGB"
glib:nick="rgb"/>
</enumeration>
<enumeration name="InterpType"
glib:type-name="GdkInterpType"
glib:get-type="gdk_interp_type_get_type"
c:type="GdkInterpType">
<member name="nearest"
value="0"
c:identifier="GDK_INTERP_NEAREST"
glib:nick="nearest"/>
<member name="tiles"
value="1"
c:identifier="GDK_INTERP_TILES"
glib:nick="tiles"/>
<member name="bilinear"
value="2"
c:identifier="GDK_INTERP_BILINEAR"
glib:nick="bilinear"/>
<member name="hyper"
value="3"
c:identifier="GDK_INTERP_HYPER"
glib:nick="hyper"/>
</enumeration>
<constant name="PIXBUF_FEATURES_H" value="1">
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIXBUF_MAGIC_NUMBER" value="1197763408">
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIXBUF_MAJOR" value="2">
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIXBUF_MICRO" value="1">
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIXBUF_MINOR" value="23">
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIXBUF_VERSION" value="2.23.1">
<type name="utf8" c:type="gchar*"/>
</constant>
<constant name="PIXDATA_HEADER_LENGTH" value="24">
<type name="gint" c:type="gint"/>
</constant>
<class name="Pixbuf"
c:symbol-prefix="pixbuf"
c:type="GdkPixbuf"
parent="GObject.Object"
glib:type-name="GdkPixbuf"
glib:get-type="gdk_pixbuf_get_type">
<implements name="Gio.Icon"/>
<constructor name="new" c:identifier="gdk_pixbuf_new">
<doc xml:whitespace="preserve">Creates a new #GdkPixbuf structure and allocates a buffer for it. The
buffer has an optimal rowstride. Note that the buffer is not cleared;
you will have to fill it completely yourself.
%NULL if not enough memory could be allocated for the image buffer.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #GdkPixbuf with a reference count of 1, or</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="colorspace" transfer-ownership="none">
<doc xml:whitespace="preserve">Color space for image</doc>
<type name="Colorspace" c:type="GdkColorspace"/>
</parameter>
<parameter name="has_alpha" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether the image should have transparency information</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="bits_per_sample" transfer-ownership="none">
<doc xml:whitespace="preserve">Number of bits per color sample</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">Width of image in pixels, must be > 0</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">Height of image in pixels, must be > 0</doc>
<type name="gint" c:type="int"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_data"
c:identifier="gdk_pixbuf_new_from_data">
<doc xml:whitespace="preserve">Creates a new #GdkPixbuf out of in-memory image data. Currently only RGB
images with 8 bits per sample are supported.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #GdkPixbuf structure with a reference count of 1.</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">Image data in 8-bit/sample packed format</doc>
<type name="guint8" c:type="guchar*"/>
</parameter>
<parameter name="colorspace" transfer-ownership="none">
<doc xml:whitespace="preserve">Colorspace for the image data</doc>
<type name="Colorspace" c:type="GdkColorspace"/>
</parameter>
<parameter name="has_alpha" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether the data has an opacity channel</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="bits_per_sample" transfer-ownership="none">
<doc xml:whitespace="preserve">Number of bits per sample</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">Width of the image in pixels, must be > 0</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">Height of the image in pixels, must be > 0</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="rowstride" transfer-ownership="none">
<doc xml:whitespace="preserve">Distance in bytes between row starts</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="destroy_fn"
transfer-ownership="none"
scope="async"
closure="8">
<doc xml:whitespace="preserve">Function used to free the data when the pixbuf's reference count drops to zero, or %NULL if the data should not be freed</doc>
<type name="PixbufDestroyNotify" c:type="GdkPixbufDestroyNotify"/>
</parameter>
<parameter name="destroy_fn_data" transfer-ownership="none">
<doc xml:whitespace="preserve">Closure data to pass to the destroy notification function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_file"
c:identifier="gdk_pixbuf_new_from_file"
throws="1">
<doc xml:whitespace="preserve">Creates a new pixbuf by loading an image from a file. The file format is
detected automatically. If %NULL is returned, then @error will be set.
Possible errors are in the #GDK_PIXBUF_ERROR and #G_FILE_ERROR domains.
there was no loader for the file's format, there was not enough memory to
allocate the image buffer, or the image file contained invalid data.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1, or %NULL if</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="filename" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of file to load, in the GLib file name encoding</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_file_at_scale"
c:identifier="gdk_pixbuf_new_from_file_at_scale"
version="2.6"
throws="1">
<doc xml:whitespace="preserve">Creates a new pixbuf by loading an image from a file. The file format is
detected automatically. If %NULL is returned, then @error will be set.
Possible errors are in the #GDK_PIXBUF_ERROR and #G_FILE_ERROR domains.
The image will be scaled to fit in the requested size, optionally preserving
the image's aspect ratio.
When preserving the aspect ratio, a @width of -1 will cause the image
to be scaled to the exact given height, and a @height of -1 will cause
the image to be scaled to the exact given width. When not preserving
aspect ratio, a @width or @height of -1 means to not scale the image
at all in that dimension. Negative values for @width and @height are
allowed since 2.8.
there was no loader for the file's format, there was not enough memory to
allocate the image buffer, or the image file contained invalid data.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1, or %NULL</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="filename" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of file to load, in the GLib file name encoding</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">The width the image should have or -1 to not constrain the width</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">The height the image should have or -1 to not constrain the height</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE to preserve the image's aspect ratio</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_file_at_size"
c:identifier="gdk_pixbuf_new_from_file_at_size"
version="2.4"
throws="1">
<doc xml:whitespace="preserve">Creates a new pixbuf by loading an image from a file.
The file format is detected automatically. If %NULL is returned, then
#G_FILE_ERROR domains.
The image will be scaled to fit in the requested size, preserving
the image's aspect ratio. Note that the returned pixbuf may be smaller
than @width x @height, if the aspect ratio requires it. To load
and image at the requested size, regardless of aspect ratio, use
gdk_pixbuf_new_from_file_at_scale().
%NULL if any of several error conditions occurred: the file could not
be opened, there was no loader for the file's format, there was not
enough memory to allocate the image buffer, or the image file contained
invalid data.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1, or</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="filename" transfer-ownership="none">
<doc xml:whitespace="preserve">Name of file to load, in the GLib file name encoding</doc>
<type name="utf8" c:type="char*"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">The width the image should have or -1 to not constrain the width</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">The height the image should have or -1 to not constrain the height</doc>
<type name="gint" c:type="int"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_inline"
c:identifier="gdk_pixbuf_new_from_inline"
throws="1">
<doc xml:whitespace="preserve">Create a #GdkPixbuf from a flat representation that is suitable for
storing as inline data in a program. This is useful if you want to
ship a program with images, but don't want to depend on any
external files.
gdk-pixbuf ships with a program called <command>gdk-pixbuf-csource</command>
which allows for conversion of #GdkPixbufs into such a inline representation.
In almost all cases, you should pass the <option>--raw</option> flag to
<command>gdk-pixbuf-csource</command>. A sample invocation would be:
<informalexample><programlisting>
gdk-pixbuf-csource --raw --name=myimage_inline myimage.png
</programlisting></informalexample>
For the typical case where the inline pixbuf is read-only static data,
you don't need to copy the pixel data unless you intend to write to
it, so you can pass %FALSE for @copy_pixels. (If you pass
<option>--rle</option> to <command>gdk-pixbuf-csource</command>, a copy
will be made even if @copy_pixels is %FALSE, so using this option is
generally a bad idea.)
If you create a pixbuf from const inline data compiled into your
program, it's probably safe to ignore errors and disable length checks,
since things will always succeed:
<informalexample><programlisting>
pixbuf = gdk_pixbuf_new_from_inline (-1, myimage_inline, FALSE, NULL);
</programlisting></informalexample>
For non-const inline data, you could get out of memory. For untrusted
inline data located at runtime, you could have corrupt inline data in
addition.
count of 1, or %NULL if an error occurred.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created #GdkPixbuf structure with a reference,</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="data_length" transfer-ownership="none">
<doc xml:whitespace="preserve">Length in bytes of the @data argument or -1 to disable length checks</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">Byte data containing a serialized #GdkPixdata structure</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
<parameter name="copy_pixels" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether to copy the pixel data, or use direct pointers</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_stream"
c:identifier="gdk_pixbuf_new_from_stream"
version="2.14"
throws="1">
<doc xml:whitespace="preserve">Creates a new pixbuf by loading an image from an input stream.
The file format is detected automatically. If %NULL is returned, then
from another thread. If the operation was cancelled, the error
%GIO_ERROR_CANCELLED will be returned. Other possible errors are in
the #GDK_PIXBUF_ERROR and %G_IO_ERROR domains.
The stream is not closed.
not supported, there was not enough memory to allocate the image buffer,
the stream contained invalid data, or the operation was cancelled.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf, or %NULL if any of several error</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="stream" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GInputStream to load the pixbuf from</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">optional #GCancellable object, %NULL to ignore</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_stream_at_scale"
c:identifier="gdk_pixbuf_new_from_stream_at_scale"
version="2.14"
throws="1">
<doc xml:whitespace="preserve">Creates a new pixbuf by loading an image from an input stream.
The file format is detected automatically. If %NULL is returned, then
from another thread. If the operation was cancelled, the error
%GIO_ERROR_CANCELLED will be returned. Other possible errors are in
the #GDK_PIXBUF_ERROR and %G_IO_ERROR domains.
The image will be scaled to fit in the requested size, optionally
preserving the image's aspect ratio. When preserving the aspect ratio,
a @width of -1 will cause the image to be scaled to the exact given
height, and a @height of -1 will cause the image to be scaled to the
exact given width. When not preserving aspect ratio, a @width or
The stream is not closed.
not supported, there was not enough memory to allocate the image buffer,
the stream contained invalid data, or the operation was cancelled.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf, or %NULL if any of several error</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="stream" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GInputStream to load the pixbuf from</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">The width the image should have or -1 to not constrain the width</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">The height the image should have or -1 to not constrain the height</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE to preserve the image's aspect ratio</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">optional #GCancellable object, %NULL to ignore</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_stream_finish"
c:identifier="gdk_pixbuf_new_from_stream_finish"
version="2.24"
throws="1">
<doc xml:whitespace="preserve">Finishes an asynchronous pixbuf creation operation started with
gdk_pixbuf_new_from_stream_async().
object with g_object_unref().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a #GdkPixbuf or %NULL on error. Free the returned</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="async_result" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_from_xpm_data"
c:identifier="gdk_pixbuf_new_from_xpm_data">
<doc xml:whitespace="preserve">Creates a new pixbuf by parsing XPM data in memory. This data is commonly
the result of including an XPM file into a program's C source.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1.</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">Pointer to inline XPM data.</doc>
<type name="utf8" c:type="char**"/>
</parameter>
</parameters>
</constructor>
<function name="from_pixdata"
c:identifier="gdk_pixbuf_from_pixdata"
introspectable="0"
throws="1">
<doc xml:whitespace="preserve">Converts a #GdkPixdata to a #GdkPixbuf. If @copy_pixels is %TRUE or
if the pixel data is run-length-encoded, the pixel data is copied into
newly-allocated memory; otherwise it is reused.</doc>
<return-value>
<doc xml:whitespace="preserve">a new #GdkPixbuf.</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="pixdata" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GdkPixdata to convert into a #GdkPixbuf.</doc>
<type name="Pixdata" c:type="GdkPixdata*"/>
</parameter>
<parameter name="copy_pixels" transfer-ownership="none">
<doc xml:whitespace="preserve">whether to copy raw pixel data; run-length encoded pixel data is always copied.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</function>
<function name="get_file_info"
c:identifier="gdk_pixbuf_get_file_info"
version="2.4">
<doc xml:whitespace="preserve">Parses an image file far enough to determine its format and size.
or %NULL if the image format wasn't recognized. The return value
is owned by GdkPixbuf and should not be freed.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A #GdkPixbufFormat describing the image format of the file</doc>
<type name="PixbufFormat" c:type="GdkPixbufFormat*"/>
</return-value>
<parameters>
<parameter name="filename" transfer-ownership="none">
<doc xml:whitespace="preserve">The name of the file to identify.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">Return location for the width of the image, or %NULL</doc>
<type name="gint" c:type="gint*"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">Return location for the height of the image, or %NULL</doc>
<type name="gint" c:type="gint*"/>
</parameter>
</parameters>
</function>
<function name="get_formats"
c:identifier="gdk_pixbuf_get_formats"
version="2.2">
<doc xml:whitespace="preserve">Obtains the available information about the image formats supported
by GdkPixbuf.
#GdkPixbufFormat<!-- -->s describing the supported
image formats. The list should be freed when it is no longer needed,
but the structures themselves are owned by #GdkPixbuf and should not be
freed.</doc>
<return-value transfer-ownership="container">
<doc xml:whitespace="preserve">A list of</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="PixbufFormat"/>
</type>
</return-value>
</function>
<function name="gettext" c:identifier="gdk_pixbuf_gettext">
<return-value transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="msgid" transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</function>
<function name="new_from_stream_async"
c:identifier="gdk_pixbuf_new_from_stream_async"
version="2.24">
<doc xml:whitespace="preserve">Creates a new pixbuf by asynchronously loading an image from an input stream.
For more details see gdk_pixbuf_new_from_stream(), which is the synchronous
version of this function.
When the operation is finished, @callback will be called in the main thread.
You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="stream" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GInputStream from which to load the pixbuf</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">optional #GCancellable object, %NULL to ignore</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="3">
<doc xml:whitespace="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data to pass to the callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="new_from_stream_at_scale_async"
c:identifier="gdk_pixbuf_new_from_stream_at_scale_async"
version="2.24">
<doc xml:whitespace="preserve">Creates a new pixbuf by asynchronously loading an image from an input stream.
For more details see gdk_pixbuf_new_from_stream_at_scale(), which is the synchronous
version of this function.
When the operation is finished, @callback will be called in the main thread.
You can then call gdk_pixbuf_new_from_stream_finish() to get the result of the operation.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="stream" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GInputStream from which to load the pixbuf</doc>
<type name="Gio.InputStream" c:type="GInputStream*"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">the width the image should have or -1 to not constrain the width</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">the height the image should have or -1 to not constrain the height</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="preserve_aspect_ratio" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE to preserve the image's aspect ratio</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="cancellable"
transfer-ownership="none"
allow-none="1">
<doc xml:whitespace="preserve">optional #GCancellable object, %NULL to ignore</doc>
<type name="Gio.Cancellable" c:type="GCancellable*"/>
</parameter>
<parameter name="callback"
transfer-ownership="none"
scope="async"
closure="6">
<doc xml:whitespace="preserve">a #GAsyncReadyCallback to call when the the pixbuf is loaded</doc>
<type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
</parameter>
<parameter name="user_data" transfer-ownership="none">
<doc xml:whitespace="preserve">the data to pass to the callback function</doc>
<type name="gpointer" c:type="gpointer"/>
</parameter>
</parameters>
</function>
<function name="save_to_stream_finish"
c:identifier="gdk_pixbuf_save_to_stream_finish"
version="2.24"
throws="1">
<doc xml:whitespace="preserve">Finishes an asynchronous pixbuf save operation started with
gdk_pixbuf_save_to_stream_async().</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the pixbuf was saved successfully, %FALSE if an error was set.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="async_result" transfer-ownership="none">
<doc xml:whitespace="preserve">a #GAsyncResult</doc>
<type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
</parameter>
</parameters>
</function>
<method name="add_alpha" c:identifier="gdk_pixbuf_add_alpha">
<doc xml:whitespace="preserve">Takes an existing pixbuf and adds an alpha channel to it.
If the existing pixbuf already had an alpha channel, the channel
values are copied from the original; otherwise, the alpha channel
is initialized to 255 (full opacity).
If @substitute_color is %TRUE, then the color specified by (@r, @g, @b) will be
assigned zero opacity. That is, if you pass (255, 255, 255) for the
substitute color, all white pixels will become fully transparent.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1.</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="substitute_color" transfer-ownership="none">
<doc xml:whitespace="preserve">Whether to set a color to zero opacity. If this is %FALSE, then the (@r, @g, @b) arguments will be ignored.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
<parameter name="r" transfer-ownership="none">
<doc xml:whitespace="preserve">Red value to substitute.</doc>
<type name="guint8" c:type="guchar"/>
</parameter>
<parameter name="g" transfer-ownership="none">
<doc xml:whitespace="preserve">Green value to substitute.</doc>
<type name="guint8" c:type="guchar"/>
</parameter>
<parameter name="b" transfer-ownership="none">
<doc xml:whitespace="preserve">Blue value to substitute.</doc>
<type name="guint8" c:type="guchar"/>
</parameter>
</parameters>
</method>
<method name="apply_embedded_orientation"
c:identifier="gdk_pixbuf_apply_embedded_orientation"
version="2.12">
<doc xml:whitespace="preserve">Takes an existing pixbuf and checks for the presence of an
associated "orientation" option, which may be provided by the
jpeg loader (which reads the exif orientation tag) or the
tiff loader (which reads the tiff orientation tag, and
compensates it for the partial transforms performed by
libtiff). If an orientation option/tag is present, the
appropriate transform will be performed so that the pixbuf
is oriented correctly.
input pixbuf (with an increased reference count).</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf, or a reference to the</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
</method>
<method name="composite" c:identifier="gdk_pixbuf_composite">
<doc xml:whitespace="preserve">Creates a transformation of the source image @src by scaling by
This gives an image in the coordinates of the destination pixbuf.
The rectangle (@dest_x, @dest_y, @dest_width, @dest_height)
is then composited onto the corresponding rectangle of the
original destination image.
When the destination rectangle contains parts not in the source
image, the data at the edges of the source image is replicated
to infinity.
<figure id="pixbuf-composite-diagram">
<title>Compositing of pixbufs</title>
<graphic fileref="composite.png" format="PNG"/>
</figure></doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dest" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GdkPixbuf into which to render the results</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</parameter>
<parameter name="dest_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the left coordinate for region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the top coordinate for region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_width" transfer-ownership="none">
<doc xml:whitespace="preserve">the width of the region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_height" transfer-ownership="none">
<doc xml:whitespace="preserve">the height of the region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="offset_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the offset in the X direction (currently rounded to an integer)</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="offset_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the offset in the Y direction (currently rounded to an integer)</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="scale_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the scale factor in the X direction</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="scale_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the scale factor in the Y direction</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="interp_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the interpolation type for the transformation.</doc>
<type name="InterpType" c:type="GdkInterpType"/>
</parameter>
<parameter name="overall_alpha" transfer-ownership="none">
<doc xml:whitespace="preserve">overall alpha for source image (0..255)</doc>
<type name="gint" c:type="int"/>
</parameter>
</parameters>
</method>
<method name="composite_color" c:identifier="gdk_pixbuf_composite_color">
<doc xml:whitespace="preserve">Creates a transformation of the source image @src by scaling by
then composites the rectangle (@dest_x ,@dest_y, @dest_width,
colors @color1 and @color2 and renders it onto the destination
image.
See gdk_pixbuf_composite_color_simple() for a simpler variant of this
function suitable for many tasks.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="dest" transfer-ownership="none">
<doc xml:whitespace="preserve">the #GdkPixbuf into which to render the results</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</parameter>
<parameter name="dest_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the left coordinate for region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the top coordinate for region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_width" transfer-ownership="none">
<doc xml:whitespace="preserve">the width of the region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_height" transfer-ownership="none">
<doc xml:whitespace="preserve">the height of the region to render</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="offset_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the offset in the X direction (currently rounded to an integer)</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="offset_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the offset in the Y direction (currently rounded to an integer)</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="scale_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the scale factor in the X direction</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="scale_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the scale factor in the Y direction</doc>
<type name="gdouble" c:type="double"/>
</parameter>
<parameter name="interp_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the interpolation type for the transformation.</doc>
<type name="InterpType" c:type="GdkInterpType"/>
</parameter>
<parameter name="overall_alpha" transfer-ownership="none">
<doc xml:whitespace="preserve">overall alpha for source image (0..255)</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="check_x" transfer-ownership="none">
<doc xml:whitespace="preserve">the X offset for the checkboard (origin of checkboard is at -@check_x, -@check_y)</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="check_y" transfer-ownership="none">
<doc xml:whitespace="preserve">the Y offset for the checkboard</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="check_size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of checks in the checkboard (must be a power of two)</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="color1" transfer-ownership="none">
<doc xml:whitespace="preserve">the color of check at upper left</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="color2" transfer-ownership="none">
<doc xml:whitespace="preserve">the color of the other check</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="composite_color_simple"
c:identifier="gdk_pixbuf_composite_color_simple">
<doc xml:whitespace="preserve">Creates a new #GdkPixbuf by scaling @src to @dest_width x
allocated for it.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the new #GdkPixbuf, or %NULL if not enough memory could be</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="dest_width" transfer-ownership="none">
<doc xml:whitespace="preserve">the width of destination image</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_height" transfer-ownership="none">
<doc xml:whitespace="preserve">the height of destination image</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="interp_type" transfer-ownership="none">
<doc xml:whitespace="preserve">the interpolation type for the transformation.</doc>
<type name="InterpType" c:type="GdkInterpType"/>
</parameter>
<parameter name="overall_alpha" transfer-ownership="none">
<doc xml:whitespace="preserve">overall alpha for source image (0..255)</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="check_size" transfer-ownership="none">
<doc xml:whitespace="preserve">the size of checks in the checkboard (must be a power of two)</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="color1" transfer-ownership="none">
<doc xml:whitespace="preserve">the color of check at upper left</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="color2" transfer-ownership="none">
<doc xml:whitespace="preserve">the color of the other check</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="copy" c:identifier="gdk_pixbuf_copy">
<doc xml:whitespace="preserve">Creates a new #GdkPixbuf with a copy of the information in the specified
not enough memory could be allocated.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">A newly-created pixbuf with a reference count of 1, or %NULL if</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
</method>
<method name="copy_area" c:identifier="gdk_pixbuf_copy_area">
<doc xml:whitespace="preserve">Copies a rectangular area from @src_pixbuf to @dest_pixbuf. Conversion of
pixbuf formats is done automatically.
If the source rectangle overlaps the destination rectangle on the
same pixbuf, it will be overwritten during the copy operation.
Therefore, you can not use this function to scroll a pixbuf.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="src_x" transfer-ownership="none">
<doc xml:whitespace="preserve">Source X coordinate within @src_pixbuf.</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="src_y" transfer-ownership="none">
<doc xml:whitespace="preserve">Source Y coordinate within @src_pixbuf.</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">Width of the area to copy.</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">Height of the area to copy.</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_pixbuf" transfer-ownership="none">
<doc xml:whitespace="preserve">Destination pixbuf.</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</parameter>
<parameter name="dest_x" transfer-ownership="none">
<doc xml:whitespace="preserve">X coordinate within @dest_pixbuf.</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="dest_y" transfer-ownership="none">
<doc xml:whitespace="preserve">Y coordinate within @dest_pixbuf.</doc>
<type name="gint" c:type="int"/>
</parameter>
</parameters>
</method>
<method name="fill" c:identifier="gdk_pixbuf_fill">
<doc xml:whitespace="preserve">Clears a pixbuf to the given RGBA value, converting the RGBA value into
the pixbuf's pixel format. The alpha will be ignored if the pixbuf
doesn't have an alpha channel.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="pixel" transfer-ownership="none">
<doc xml:whitespace="preserve">RGBA pixel to clear to (0xffffffff is opaque white, 0x00000000 transparent black)</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
</method>
<method name="flip" c:identifier="gdk_pixbuf_flip" version="2.6">
<doc xml:whitespace="preserve">Flips a pixbuf horizontally or vertically and returns the
result in a new pixbuf.
allocated for it.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the new #GdkPixbuf, or %NULL if not enough memory could be</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="horizontal" transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE to flip horizontally, %FALSE to flip vertically</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="get_bits_per_sample"
c:identifier="gdk_pixbuf_get_bits_per_sample">
<doc xml:whitespace="preserve">Queries the number of bits per color sample in a pixbuf.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of bits per color sample.</doc>
<type name="gint" c:type="int"/>
</return-value>
</method>
<method name="get_colorspace" c:identifier="gdk_pixbuf_get_colorspace">
<doc xml:whitespace="preserve">Queries the color space of a pixbuf.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Color space.</doc>
<type name="Colorspace" c:type="GdkColorspace"/>
</return-value>
</method>
<method name="get_has_alpha" c:identifier="gdk_pixbuf_get_has_alpha">
<doc xml:whitespace="preserve">Queries whether a pixbuf has an alpha channel (opacity information).</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if it has an alpha channel, %FALSE otherwise.</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
</method>
<method name="get_height" c:identifier="gdk_pixbuf_get_height">
<doc xml:whitespace="preserve">Queries the height of a pixbuf.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Height in pixels.</doc>
<type name="gint" c:type="int"/>
</return-value>
</method>
<method name="get_n_channels" c:identifier="gdk_pixbuf_get_n_channels">
<doc xml:whitespace="preserve">Queries the number of channels of a pixbuf.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Number of channels.</doc>
<type name="gint" c:type="int"/>
</return-value>
</method>
<method name="get_option" c:identifier="gdk_pixbuf_get_option">
<doc xml:whitespace="preserve">Looks up @key in the list of options that may have been attached to the
function using gdk_pixbuf_set_option().
For instance, the ANI loader provides "Title" and "Artist" options.
The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
options for cursor definitions. The PNG loader provides the tEXt ancillary
chunk key/value pairs as options. Since 2.12, the TIFF and JPEG loaders
return an "orientation" option string that corresponds to the embedded
TIFF/Exif orientation tag (if present).
string that should not be freed or %NULL if @key was not found.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">the value associated with @key. This is a nul-terminated</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
<parameters>
<parameter name="key" transfer-ownership="none">
<doc xml:whitespace="preserve">a nul-terminated string.</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_pixels" c:identifier="gdk_pixbuf_get_pixels">
<doc xml:whitespace="preserve">Queries a pointer to the pixel data of a pixbuf.
for information about how the pixel data is stored in
memory.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">A pointer to the pixbuf's pixel data. Please see <xref linkend="image-data"/></doc>
<type name="guint8" c:type="guchar*"/>
</return-value>
</method>
<method name="get_rowstride" c:identifier="gdk_pixbuf_get_rowstride">
<doc xml:whitespace="preserve">Queries the rowstride of a pixbuf, which is the number of bytes between the start of a row
and the start of the next row.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Distance between row starts.</doc>
<type name="gint" c:type="int"/>
</return-value>
</method>
<method name="get_width" c:identifier="gdk_pixbuf_get_width">
<doc xml:whitespace="preserve">Queries the width of a pixbuf.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">Width in pixels.</doc>
<type name="gint" c:type="int"/>
</return-value>
</method>
<method name="new_subpixbuf" c:identifier="gdk_pixbuf_new_subpixbuf">
<doc xml:whitespace="preserve">Creates a new pixbuf which represents a sub-region of
original pixbuf, so writing to one affects both.
The new pixbuf holds a reference to @src_pixbuf, so
is finalized.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a new pixbuf</doc>
<type name="Pixbuf" c:type="GdkPixbuf*"/>
</return-value>
<parameters>
<parameter name="src_x" transfer-ownership="none">
<doc xml:whitespace="preserve">X coord in @src_pixbuf</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="src_y" transfer-ownership="none">
<doc xml:whitespace="preserve">Y coord in @src_pixbuf</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:whitespace="preserve">width of region in @src_pixbuf</doc>
<type name="gint" c:type="int"/>
</parameter>
<parameter name="height" transfer-ownership="none">
<doc xml:whitespace="preserve">height of region in @src_pixbuf</doc>
<type name="gint" c:type="int"/>
</parameter>
</parameters>
</method>
<method name="ref"
c:identifier="gdk_pixbuf_ref"
introspectable="0"
deprecated="Use g_object_ref()."
deprecated-version="2.0">