~ubuntu-branches/ubuntu/maverick/gdk-pixbuf/maverick

« back to all changes in this revision

Viewing changes to doc/html/gnomecanvaspixbuf.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-07-23 11:26:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100723112625-owhl395g8ifk2wtn
Tags: 2.21.6-2ubuntu1
* Rebase on Debian
* debian/control, debian/gir1.0-gdkpixbuf-2.0.install, debian/rules:
  - build a gir1.0-gdkpixbuf-2.0 gir binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<HTML
2
 
><HEAD
3
 
><TITLE
4
 
>GnomeCanvasPixbuf</TITLE
5
 
><META
6
 
NAME="GENERATOR"
7
 
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8
 
"><LINK
9
 
REL="HOME"
10
 
TITLE="The gdk-pixbuf Library"
11
 
HREF="index.html"><LINK
12
 
REL="UP"
13
 
TITLE="API Reference"
14
 
HREF="r27.html"><LINK
15
 
REL="PREVIOUS"
16
 
TITLE="GdkPixbufLoader"
17
 
HREF="gdkpixbufloader.html"><LINK
18
 
REL="NEXT"
19
 
TITLE="gdk-pixbuf Xlib initialization"
20
 
HREF="gdk-pixbuf-gdk-pixbuf-xlib-init.html"></HEAD
21
 
><BODY
22
 
CLASS="REFENTRY"
23
 
BGCOLOR="#FFFFFF"
24
 
TEXT="#000000"
25
 
LINK="#0000FF"
26
 
VLINK="#840084"
27
 
ALINK="#0000FF"
28
 
><DIV
29
 
CLASS="NAVHEADER"
30
 
><TABLE
31
 
WIDTH="100%"
32
 
BORDER="0"
33
 
BGCOLOR="#000000"
34
 
CELLPADDING="1"
35
 
CELLSPACING="0"
36
 
><TR
37
 
><TH
38
 
COLSPAN="4"
39
 
ALIGN="center"
40
 
><FONT
41
 
COLOR="#FFFFFF"
42
 
SIZE="5"
43
 
>The <SPAN
44
 
CLASS="APPLICATION"
45
 
>gdk-pixbuf</SPAN
46
 
> Library</FONT
47
 
></TH
48
 
></TR
49
 
><TR
50
 
><TD
51
 
WIDTH="25%"
52
 
BGCOLOR="#C00000"
53
 
ALIGN="left"
54
 
><A
55
 
HREF="gdkpixbufloader.html"
56
 
><FONT
57
 
COLOR="#FFFFFF"
58
 
SIZE="3"
59
 
><B
60
 
>&#60;&#60;&#60; Previous Page</B
61
 
></FONT
62
 
></A
63
 
></TD
64
 
><TD
65
 
WIDTH="25%"
66
 
BGCOLOR="#0000C0"
67
 
ALIGN="center"
68
 
><FONT
69
 
COLOR="#FFFFFF"
70
 
SIZE="3"
71
 
><B
72
 
><A
73
 
HREF="index.html"
74
 
><FONT
75
 
COLOR="#FFFFFF"
76
 
SIZE="3"
77
 
><B
78
 
>Home</B
79
 
></FONT
80
 
></A
81
 
></B
82
 
></FONT
83
 
></TD
84
 
><TD
85
 
WIDTH="25%"
86
 
BGCOLOR="#00C000"
87
 
ALIGN="center"
88
 
><FONT
89
 
COLOR="#FFFFFF"
90
 
SIZE="3"
91
 
><B
92
 
><A
93
 
HREF="r27.html"
94
 
><FONT
95
 
COLOR="#FFFFFF"
96
 
SIZE="3"
97
 
><B
98
 
>Up</B
99
 
></FONT
100
 
></A
101
 
></B
102
 
></FONT
103
 
></TD
104
 
><TD
105
 
WIDTH="25%"
106
 
BGCOLOR="#C00000"
107
 
ALIGN="right"
108
 
><A
109
 
HREF="gdk-pixbuf-gdk-pixbuf-xlib-init.html"
110
 
><FONT
111
 
COLOR="#FFFFFF"
112
 
SIZE="3"
113
 
><B
114
 
>Next Page &#62;&#62;&#62;</B
115
 
></FONT
116
 
></A
117
 
></TD
118
 
></TR
119
 
></TABLE
120
 
></DIV
121
 
><H1
122
 
><A
123
 
NAME="GNOMECANVASPIXBUF">GnomeCanvasPixbuf</H1
124
 
><DIV
125
 
CLASS="REFNAMEDIV"
126
 
><A
127
 
NAME="AEN2339"
128
 
></A
129
 
><H2
130
 
>Name</H2
131
 
>GnomeCanvasPixbuf&nbsp;--&nbsp;Canvas item to display GdkPixbuf images.</DIV
132
 
><DIV
133
 
CLASS="REFSYNOPSISDIV"
134
 
><A
135
 
NAME="AEN2343"><H2
136
 
>Synopsis</H2
137
 
><TABLE
138
 
BORDER="0"
139
 
BGCOLOR="#D6E8FF"
140
 
WIDTH="100%"
141
 
CELLPADDING="6"
142
 
><TR
143
 
><TD
144
 
><PRE
145
 
CLASS="SYNOPSIS"
146
 
>&#13;#include &lt;gdk-pixbuf/gdk-pixbuf.h&gt;
147
 
 
148
 
 
149
 
#define     <A
150
 
HREF="gnomecanvaspixbuf.html#GNOME-CANVAS-PIXBUF-CAPS"
151
 
>GNOME_CANVAS_PIXBUF</A
152
 
>             (obj)
153
 
&#13;</PRE
154
 
></TD
155
 
></TR
156
 
></TABLE
157
 
></DIV
158
 
><DIV
159
 
CLASS="REFSECT1"
160
 
><A
161
 
NAME="AEN2347"
162
 
></A
163
 
><H2
164
 
>Object Hierarchy</H2
165
 
><TABLE
166
 
BORDER="0"
167
 
BGCOLOR="#D6E8FF"
168
 
WIDTH="100%"
169
 
CELLPADDING="6"
170
 
><TR
171
 
><TD
172
 
><PRE
173
 
CLASS="SYNOPSIS"
174
 
>&#13;  GtkObject
175
 
   +----GnomeCanvasItem
176
 
         +----GnomeCanvasPixbuf</PRE
177
 
></TD
178
 
></TR
179
 
></TABLE
180
 
></DIV
181
 
><DIV
182
 
CLASS="REFSECT1"
183
 
><A
184
 
NAME="AEN2352"
185
 
></A
186
 
><H2
187
 
>Args</H2
188
 
><TABLE
189
 
BORDER="0"
190
 
BGCOLOR="#D6E8FF"
191
 
WIDTH="100%"
192
 
CELLPADDING="6"
193
 
><TR
194
 
><TD
195
 
><PRE
196
 
CLASS="SYNOPSIS"
197
 
>&#13;  &quot;<A
198
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--PIXBUF"
199
 
>pixbuf</A
200
 
>&quot;               gpointer             : Read / Write
201
 
  &quot;<A
202
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH"
203
 
>width</A
204
 
>&quot;                gdouble              : Read / Write
205
 
  &quot;<A
206
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-SET"
207
 
>width-set</A
208
 
>&quot;            gboolean             : Read / Write
209
 
  &quot;<A
210
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
211
 
>width-in-pixels</A
212
 
>&quot;      gboolean             : Read / Write
213
 
  &quot;<A
214
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT"
215
 
>height</A
216
 
>&quot;               gdouble              : Read / Write
217
 
  &quot;<A
218
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT-SET"
219
 
>height-set</A
220
 
>&quot;           gboolean             : Read / Write
221
 
  &quot;<A
222
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT-IN-PIXELS"
223
 
>height-in-pixels</A
224
 
>&quot;     gboolean             : Read / Write
225
 
  &quot;<A
226
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X"
227
 
>x</A
228
 
>&quot;                    gdouble              : Read / Write
229
 
  &quot;<A
230
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X-IN-PIXELS"
231
 
>x-in-pixels</A
232
 
>&quot;          gboolean             : Read / Write
233
 
  &quot;<A
234
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y"
235
 
>y</A
236
 
>&quot;                    gdouble              : Read / Write
237
 
  &quot;<A
238
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y-IN-PIXELS"
239
 
>y-in-pixels</A
240
 
>&quot;          gboolean             : Read / Write</PRE
241
 
></TD
242
 
></TR
243
 
></TABLE
244
 
></DIV
245
 
><DIV
246
 
CLASS="REFSECT1"
247
 
><A
248
 
NAME="AEN2377"
249
 
></A
250
 
><H2
251
 
>Description</H2
252
 
><P
253
 
>    This canvas item displays GdkPixbuf images.  It handles full
254
 
    affine transformations in both GDK and antialiased modes, and also
255
 
    supports the <A
256
 
HREF="http://www.w3.org"
257
 
TARGET="_top"
258
 
>W3C</A
259
 
>'s <A
260
 
HREF="http://www.w3.org/Graphics/SVG/"
261
 
TARGET="_top"
262
 
>SVG</A
263
 
>-like scaling and
264
 
    translation semantics for absolute pixel values.
265
 
  </P
266
 
><P
267
 
>    GdkPixbuf structures may be shared among different pixbuf canvas
268
 
    items; the pixbuf item uses GdkPixbuf's reference counting
269
 
    functions for this.
270
 
  </P
271
 
><DIV
272
 
CLASS="REFSECT2"
273
 
><A
274
 
NAME="AEN2386"
275
 
></A
276
 
><H3
277
 
>Custom Scaling and Translation</H3
278
 
><P
279
 
>      In addition to the normal affine transformations supported by
280
 
      canvas items, the <A
281
 
HREF="gnomecanvaspixbuf.html"
282
 
>GnomeCanvasPixbuf</A
283
 
> item supports independent
284
 
      object arguments for scaling and translation.  This is useful
285
 
      for explicitly setting a size to which the pixbuf's image will
286
 
      be scaled, and for specifying translation offsets that take
287
 
      place in the item's local coordinate system.
288
 
    </P
289
 
><P
290
 
>      By default, the pixbuf canvas item will attain the size in units
291
 
      of the GdkPixbuf it contains.  If a <A
292
 
HREF="gnomecanvaspixbuf.html"
293
 
>GnomeCanvasPixbuf</A
294
 
> is
295
 
      configured to use a GdkPixbuf that has a size of 300 by 200
296
 
      pixels, then the pixbuf item will automatically obtain a size of
297
 
      300 by 200 units in the item's local coordinate system.  If the
298
 
      item is transformed with a scaling transformation of (0.5, 2.0),
299
 
      then the final image size will be of 150 by 400 pixels.
300
 
    </P
301
 
><P
302
 
>      To set custom width and height values, you must set the <A
303
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-SET"
304
 
>width_set</A
305
 
> or <A
306
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT-SET"
307
 
>height_set</A
308
 
>
309
 
      arguments to <TT
310
 
CLASS="LITERAL"
311
 
>TRUE</TT
312
 
>, and then set the <A
313
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH"
314
 
>width</A
315
 
> or <A
316
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT"
317
 
>height</A
318
 
> arguments to
319
 
      the desired values.  The former two arguments control whether
320
 
      the latter two are used when computing the final image's size;
321
 
      they are both <TT
322
 
CLASS="LITERAL"
323
 
>FALSE</TT
324
 
> by default so that the pixbuf item will
325
 
      attain a size in units equal to the size in pixels of the
326
 
      GdkPixbuf that the item contains.
327
 
    </P
328
 
><P
329
 
>      The custom translation offsets are controlled by the <A
330
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X"
331
 
>x</A
332
 
> and <A
333
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y"
334
 
>y</A
335
 
> arguments.  The logical
336
 
      upper-left vertex of the image will be translated by the
337
 
      specified distance, aligned with the item's local coordinate
338
 
      system.
339
 
    </P
340
 
></DIV
341
 
><HR><DIV
342
 
CLASS="REFSECT2"
343
 
><A
344
 
NAME="AEN2405"
345
 
></A
346
 
><H3
347
 
>Absolute Pixel Scaling and Translation</H3
348
 
><P
349
 
>      The <A
350
 
HREF="http://www.w3.org/Graphics/SVG/"
351
 
TARGET="_top"
352
 
>Scalable Vector
353
 
      Graphics</A
354
 
> specification (SVG) of the <A
355
 
HREF="http://www.w3.org"
356
 
TARGET="_top"
357
 
>World Wide Web Consortium</A
358
 
> also
359
 
      allows images to be translated and scaled by absolute pixel
360
 
      values that are independent of an item's normal affine
361
 
      transformation.
362
 
    </P
363
 
><P
364
 
>      Normally, the pixbuf item's translation and scaling arguments
365
 
      are interpreted in units, so they will be modified by the item's
366
 
      affine transformation.  The <A
367
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
368
 
>width_in_pixels</A
369
 
>,
370
 
      <A
371
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT-IN-PIXELS"
372
 
>height_in_pixels</A
373
 
>,
374
 
      <A
375
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X-IN-PIXELS"
376
 
>x_in_pixels</A
377
 
>, and
378
 
      <A
379
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y-IN-PIXELS"
380
 
>y_in_pixels</A
381
 
>
382
 
      object arguments can be used to modify this behavior.  If one of
383
 
      these arguments is <TT
384
 
CLASS="LITERAL"
385
 
>TRUE</TT
386
 
>, then the corresponding scaling or
387
 
      translation value will not be affected lengthwise by the pixbuf
388
 
      item's affine transformation.
389
 
    </P
390
 
><P
391
 
>      For example, consider a pixbuf item whose size is (300, 200).
392
 
      If the item is modified with a scaling transformation of (0.5,
393
 
      2.0) but the <A
394
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
395
 
>width_in_pixels</A
396
 
>
397
 
      is set to <TT
398
 
CLASS="LITERAL"
399
 
>TRUE</TT
400
 
>, then the item will appear to be (300, 400)
401
 
      pixels in size.  This means that in this case the item's affine
402
 
      transformation only applies to the height value, while the width
403
 
      value is kept in absolute pixels.
404
 
    </P
405
 
><P
406
 
>      Likewise, consider a pixbuf item whose (<A
407
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X"
408
 
>x</A
409
 
>, <A
410
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y"
411
 
>y</A
412
 
>) arguments are set to
413
 
      (30, 40).  If the item is then modified by the same scaling
414
 
      transformation of (0.5, 2.0) but the <A
415
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y-IN-PIXELS"
416
 
>y_in_pixels</A
417
 
>
418
 
      argument is set to <TT
419
 
CLASS="LITERAL"
420
 
>TRUE</TT
421
 
>, then the image's upper-left corner
422
 
      will appear to be at position (15, 40).  In this case, the
423
 
      affine transformation is applied only to the x offset, while the
424
 
      y offset is kept in absolute pixels.
425
 
    </P
426
 
><P
427
 
>      In short, these arguments control whether a particular dimension
428
 
      of a pixbuf item is scaled or not in the normal way by the
429
 
      item's affine transformation.
430
 
    </P
431
 
></DIV
432
 
><HR><DIV
433
 
CLASS="REFSECT2"
434
 
><A
435
 
NAME="AEN2425"
436
 
></A
437
 
><H3
438
 
>Resource Management</H3
439
 
><P
440
 
>      When you set the GdkPixbuf structure that a <A
441
 
HREF="gnomecanvaspixbuf.html"
442
 
>GnomeCanvasPixbuf</A
443
 
>
444
 
      item will use by setting the <A
445
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--PIXBUF"
446
 
>pixbuf</A
447
 
> argument, a
448
 
      reference count will be added to that GdkPixbuf structure.
449
 
      When the pixbuf item no longer needs the GdkPixbuf structure,
450
 
      such as when the item is destroyed or when a new pixbuf
451
 
      structure is passed to it, then the old GdkPixbuf structure
452
 
      will be automatically unreferenced.
453
 
    </P
454
 
><P
455
 
>      This means that if an application just needs to load a pixbuf
456
 
      image and set it into a pixbuf canvas item, it can do the
457
 
      following to &lsquo;forget&rsquo; about the pixbuf structure:
458
 
 
459
 
      <TABLE
460
 
BORDER="0"
461
 
BGCOLOR="#D6E8FF"
462
 
WIDTH="100%"
463
 
CELLPADDING="6"
464
 
><TR
465
 
><TD
466
 
><PRE
467
 
CLASS="PROGRAMLISTING"
468
 
>       GdkPixbuf *pixbuf;
469
 
        GnomeCanvasItem *item;
470
 
 
471
 
        pixbuf = gdk_pixbuf_new_from_file ("foo.png");
472
 
        g_assert (pixbuf != NULL);
473
 
 
474
 
        item = gnome_canvas_item_new (gnome_canvas_root (my_canvas),
475
 
                                      gnome_canvas_pixbuf_get_type(),
476
 
                                      "pixbuf", pixbuf,
477
 
                                      NULL);
478
 
        gdk_pixbuf_unref (pixbuf);
479
 
      </PRE
480
 
></TD
481
 
></TR
482
 
></TABLE
483
 
>
484
 
    </P
485
 
><P
486
 
>      After this happens, the reference count of the pixbuf structure
487
 
      will be 1:  the <A
488
 
HREF="gdk-pixbuf-file-loading.html#GDK-PIXBUF-NEW-FROM-FILE"
489
 
>gdk_pixbuf_new_from_file</A
490
 
>() function creates it
491
 
      with a reference count of 1, then setting the <A
492
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--PIXBUF"
493
 
>pixbuf</A
494
 
> argument of
495
 
      the <A
496
 
HREF="gnomecanvaspixbuf.html"
497
 
>GnomeCanvasPixbuf</A
498
 
> item increases it to 2, and then it is
499
 
      decremented to 1 by the call to <A
500
 
HREF="gdk-pixbuf-refcounting.html#GDK-PIXBUF-UNREF"
501
 
>gdk_pixbuf_unref</A
502
 
>().  When the
503
 
      canvas item is destroyed, it will automatically unreference the
504
 
      pixbuf structure again, causing its reference count to drop to
505
 
      zero and thus be freed.
506
 
    </P
507
 
></DIV
508
 
></DIV
509
 
><DIV
510
 
CLASS="REFSECT1"
511
 
><A
512
 
NAME="AEN2442"
513
 
></A
514
 
><H2
515
 
>Details</H2
516
 
><DIV
517
 
CLASS="REFSECT2"
518
 
><A
519
 
NAME="AEN2444"
520
 
></A
521
 
><H3
522
 
><A
523
 
NAME="GNOME-CANVAS-PIXBUF-CAPS"
524
 
></A
525
 
>GNOME_CANVAS_PIXBUF()</H3
526
 
><TABLE
527
 
BORDER="0"
528
 
BGCOLOR="#D6E8FF"
529
 
WIDTH="100%"
530
 
CELLPADDING="6"
531
 
><TR
532
 
><TD
533
 
><PRE
534
 
CLASS="PROGRAMLISTING"
535
 
>#define     GNOME_CANVAS_PIXBUF(obj)</PRE
536
 
></TD
537
 
></TR
538
 
></TABLE
539
 
><P
540
 
>    Casts a GtkOjbect to a <A
541
 
HREF="gnomecanvaspixbuf.html"
542
 
>GnomeCanvasPixbuf</A
543
 
>.
544
 
  </P
545
 
><DIV
546
 
CLASS="INFORMALTABLE"
547
 
><A
548
 
NAME="AEN2451"><P
549
 
></P
550
 
><TABLE
551
 
BORDER="0"
552
 
WIDTH="100%"
553
 
BGCOLOR="#FFD0D0"
554
 
CELLSPACING="0"
555
 
CELLPADDING="4"
556
 
CLASS="CALSTABLE"
557
 
><TBODY
558
 
><TR
559
 
><TD
560
 
WIDTH="20%"
561
 
ALIGN="RIGHT"
562
 
VALIGN="TOP"
563
 
><TT
564
 
CLASS="PARAMETER"
565
 
><I
566
 
>obj</I
567
 
></TT
568
 
>&nbsp;:</TD
569
 
><TD
570
 
WIDTH="80%"
571
 
ALIGN="LEFT"
572
 
VALIGN="TOP"
573
 
>A GTK+ object.
574
 
&#13;</TD
575
 
></TR
576
 
></TBODY
577
 
></TABLE
578
 
><P
579
 
></P
580
 
></DIV
581
 
></DIV
582
 
></DIV
583
 
><DIV
584
 
CLASS="REFSECT1"
585
 
><A
586
 
NAME="AEN2460"
587
 
></A
588
 
><H2
589
 
>Args</H2
590
 
><P
591
 
></P
592
 
><DIV
593
 
CLASS="VARIABLELIST"
594
 
><DL
595
 
><DT
596
 
><A
597
 
NAME="GNOMECANVASPIXBUF--PIXBUF"
598
 
></A
599
 
>&quot;<TT
600
 
CLASS="LITERAL"
601
 
>pixbuf</TT
602
 
>&quot; (gpointer : Read / Write)</DT
603
 
><DD
604
 
><P
605
 
>    Contains a pointer to a GdkPixbuf structure that will be used by
606
 
    the pixbuf canvas item as an image source.  When a pixbuf is set
607
 
    its reference count is incremented; if the pixbuf item kept a
608
 
    pointer to another GdkPixbuf structure, the reference count of
609
 
    this structure will be decremented.  Also, the GdkPixbuf's
610
 
    reference count will automatically be decremented when the
611
 
    <A
612
 
HREF="gnomecanvaspixbuf.html"
613
 
>GnomeCanvasPixbuf</A
614
 
> item is destroyed.  When a pixbuf is queried, a
615
 
    reference count will not be added to the return value; you must do
616
 
    this yourself if you intend to keep the pixbuf structure around.
617
 
  </P
618
 
></DD
619
 
><DT
620
 
><A
621
 
NAME="GNOMECANVASPIXBUF--WIDTH"
622
 
></A
623
 
>&quot;<TT
624
 
CLASS="LITERAL"
625
 
>width</TT
626
 
>&quot; (gdouble : Read / Write)</DT
627
 
><DD
628
 
><P
629
 
>    Indicates the width the pixbuf will be scaled to.  This argument
630
 
    will only be used if the <A
631
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-SET"
632
 
>width_set</A
633
 
> argument
634
 
    is <TT
635
 
CLASS="LITERAL"
636
 
>TRUE</TT
637
 
>.  If the <A
638
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
639
 
>width_in_pixels</A
640
 
>
641
 
    argument is <TT
642
 
CLASS="LITERAL"
643
 
>FALSE</TT
644
 
>, the width will be taken to be in canvas units,
645
 
    and thus will be scaled along with the canvas item's affine
646
 
    transformation.  If width_in_pixels is <TT
647
 
CLASS="LITERAL"
648
 
>TRUE</TT
649
 
>, the width will be
650
 
    taken to be in pixels, and will visually remain a constant size
651
 
    even if the item's affine transformation changes.
652
 
  </P
653
 
></DD
654
 
><DT
655
 
><A
656
 
NAME="GNOMECANVASPIXBUF--WIDTH-SET"
657
 
></A
658
 
>&quot;<TT
659
 
CLASS="LITERAL"
660
 
>width-set</TT
661
 
>&quot; (gboolean : Read / Write)</DT
662
 
><DD
663
 
><P
664
 
>    Determines whether the <A
665
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH"
666
 
>width</A
667
 
> argument is taken
668
 
    into account when scaling the pixbuf item.  If this argument is
669
 
    <TT
670
 
CLASS="LITERAL"
671
 
>FALSE</TT
672
 
>, then the width value of the pixbuf will be used instead.
673
 
    This argument is <TT
674
 
CLASS="LITERAL"
675
 
>FALSE</TT
676
 
> by default.
677
 
  </P
678
 
></DD
679
 
><DT
680
 
><A
681
 
NAME="GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
682
 
></A
683
 
>&quot;<TT
684
 
CLASS="LITERAL"
685
 
>width-in-pixels</TT
686
 
>&quot; (gboolean : Read / Write)</DT
687
 
><DD
688
 
><P
689
 
>    If this argument is <TT
690
 
CLASS="LITERAL"
691
 
>TRUE</TT
692
 
>, then the width of the pixbuf will be
693
 
    considered to be in pixels, that is, it will not be visually
694
 
    scaled even if the item's affine transformation changes.  If this
695
 
    is <TT
696
 
CLASS="LITERAL"
697
 
>FALSE</TT
698
 
>, then the width of the pixbuf will be considered to be
699
 
    in canvas units, and so will be scaled normally by affine
700
 
    transformations.  The default is <TT
701
 
CLASS="LITERAL"
702
 
>FALSE</TT
703
 
>.
704
 
  </P
705
 
></DD
706
 
><DT
707
 
><A
708
 
NAME="GNOMECANVASPIXBUF--HEIGHT"
709
 
></A
710
 
>&quot;<TT
711
 
CLASS="LITERAL"
712
 
>height</TT
713
 
>&quot; (gdouble : Read / Write)</DT
714
 
><DD
715
 
><P
716
 
>    Indicates the height the pixbuf will be scaled to.  This argument
717
 
    will only be used if the <A
718
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT-SET"
719
 
>height_set</A
720
 
> argument
721
 
    is <TT
722
 
CLASS="LITERAL"
723
 
>TRUE</TT
724
 
>.  Works in the same way as the <A
725
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH"
726
 
>width</A
727
 
> argument.
728
 
  </P
729
 
></DD
730
 
><DT
731
 
><A
732
 
NAME="GNOMECANVASPIXBUF--HEIGHT-SET"
733
 
></A
734
 
>&quot;<TT
735
 
CLASS="LITERAL"
736
 
>height-set</TT
737
 
>&quot; (gboolean : Read / Write)</DT
738
 
><DD
739
 
><P
740
 
>    Determines whether the <A
741
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--HEIGHT"
742
 
>height</A
743
 
> argument is
744
 
    taken into account when scaling the pixbuf item.  Works in the
745
 
    same way as the <A
746
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-SET"
747
 
>width_set</A
748
 
> argument.
749
 
    The default is <TT
750
 
CLASS="LITERAL"
751
 
>FALSE</TT
752
 
>.
753
 
  </P
754
 
></DD
755
 
><DT
756
 
><A
757
 
NAME="GNOMECANVASPIXBUF--HEIGHT-IN-PIXELS"
758
 
></A
759
 
>&quot;<TT
760
 
CLASS="LITERAL"
761
 
>height-in-pixels</TT
762
 
>&quot; (gboolean : Read / Write)</DT
763
 
><DD
764
 
><P
765
 
>    Works in the same way as the <A
766
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--WIDTH-IN-PIXELS"
767
 
>width_in_pixels</A
768
 
>
769
 
    argument.  The default is <TT
770
 
CLASS="LITERAL"
771
 
>FALSE</TT
772
 
>.
773
 
  </P
774
 
></DD
775
 
><DT
776
 
><A
777
 
NAME="GNOMECANVASPIXBUF--X"
778
 
></A
779
 
>&quot;<TT
780
 
CLASS="LITERAL"
781
 
>x</TT
782
 
>&quot; (gdouble : Read / Write)</DT
783
 
><DD
784
 
><P
785
 
>    Indicates the horizontal translation offset of the pixbuf item's
786
 
    image.  This offset may not actually appear horizontal, since it
787
 
    will be affected by the item's affine transformation.  The default
788
 
    is 0.0.
789
 
  </P
790
 
></DD
791
 
><DT
792
 
><A
793
 
NAME="GNOMECANVASPIXBUF--X-IN-PIXELS"
794
 
></A
795
 
>&quot;<TT
796
 
CLASS="LITERAL"
797
 
>x-in-pixels</TT
798
 
>&quot; (gboolean : Read / Write)</DT
799
 
><DD
800
 
><P
801
 
>    If this argument is <TT
802
 
CLASS="LITERAL"
803
 
>TRUE</TT
804
 
>, the pixbuf's translation with respect
805
 
    to its logical origin in item-relative coordinates will be in
806
 
    pixels, that is, the visible offset will not change even if the
807
 
    item's affine transformation changes.  If it is <TT
808
 
CLASS="LITERAL"
809
 
>FALSE</TT
810
 
>, the
811
 
    pixbuf's translation will be taken to be in canvas units, and thus
812
 
    will change along with the item's affine transformation.  The
813
 
    default is <TT
814
 
CLASS="LITERAL"
815
 
>FALSE</TT
816
 
>.
817
 
  </P
818
 
></DD
819
 
><DT
820
 
><A
821
 
NAME="GNOMECANVASPIXBUF--Y"
822
 
></A
823
 
>&quot;<TT
824
 
CLASS="LITERAL"
825
 
>y</TT
826
 
>&quot; (gdouble : Read / Write)</DT
827
 
><DD
828
 
><P
829
 
>    Indicates the vertical translation offset of the pixbuf item's
830
 
    image.  Works in the same way as the <A
831
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X"
832
 
>x</A
833
 
> argument.  The default is
834
 
    0.0.
835
 
  </P
836
 
></DD
837
 
><DT
838
 
><A
839
 
NAME="GNOMECANVASPIXBUF--Y-IN-PIXELS"
840
 
></A
841
 
>&quot;<TT
842
 
CLASS="LITERAL"
843
 
>y-in-pixels</TT
844
 
>&quot; (gboolean : Read / Write)</DT
845
 
><DD
846
 
><P
847
 
>    Works in the same way as the <A
848
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--X-IN-PIXELS"
849
 
>x_in_pixels</A
850
 
>
851
 
    argument, but controls whether the <A
852
 
HREF="gnomecanvaspixbuf.html#GNOMECANVASPIXBUF--Y"
853
 
>y</A
854
 
> translation offset is
855
 
    scaled or not.  The default is <TT
856
 
CLASS="LITERAL"
857
 
>FALSE</TT
858
 
>.
859
 
  </P
860
 
></DD
861
 
></DL
862
 
></DIV
863
 
></DIV
864
 
><DIV
865
 
CLASS="REFSECT1"
866
 
><A
867
 
NAME="AEN2569"
868
 
></A
869
 
><H2
870
 
>See Also</H2
871
 
><P
872
 
>    GnomeCanvas, GdkPixbuf
873
 
  </P
874
 
></DIV
875
 
><DIV
876
 
CLASS="NAVFOOTER"
877
 
><BR
878
 
CLEAR="all"><BR><TABLE
879
 
WIDTH="100%"
880
 
BORDER="0"
881
 
BGCOLOR="#000000"
882
 
CELLPADDING="1"
883
 
CELLSPACING="0"
884
 
><TR
885
 
><TD
886
 
WIDTH="25%"
887
 
BGCOLOR="#C00000"
888
 
ALIGN="left"
889
 
><A
890
 
HREF="gdkpixbufloader.html"
891
 
><FONT
892
 
COLOR="#FFFFFF"
893
 
SIZE="3"
894
 
><B
895
 
>&#60;&#60;&#60; Previous Page</B
896
 
></FONT
897
 
></A
898
 
></TD
899
 
><TD
900
 
WIDTH="25%"
901
 
BGCOLOR="#0000C0"
902
 
ALIGN="center"
903
 
><FONT
904
 
COLOR="#FFFFFF"
905
 
SIZE="3"
906
 
><B
907
 
><A
908
 
HREF="index.html"
909
 
><FONT
910
 
COLOR="#FFFFFF"
911
 
SIZE="3"
912
 
><B
913
 
>Home</B
914
 
></FONT
915
 
></A
916
 
></B
917
 
></FONT
918
 
></TD
919
 
><TD
920
 
WIDTH="25%"
921
 
BGCOLOR="#00C000"
922
 
ALIGN="center"
923
 
><FONT
924
 
COLOR="#FFFFFF"
925
 
SIZE="3"
926
 
><B
927
 
><A
928
 
HREF="r27.html"
929
 
><FONT
930
 
COLOR="#FFFFFF"
931
 
SIZE="3"
932
 
><B
933
 
>Up</B
934
 
></FONT
935
 
></A
936
 
></B
937
 
></FONT
938
 
></TD
939
 
><TD
940
 
WIDTH="25%"
941
 
BGCOLOR="#C00000"
942
 
ALIGN="right"
943
 
><A
944
 
HREF="gdk-pixbuf-gdk-pixbuf-xlib-init.html"
945
 
><FONT
946
 
COLOR="#FFFFFF"
947
 
SIZE="3"
948
 
><B
949
 
>Next Page &#62;&#62;&#62;</B
950
 
></FONT
951
 
></A
952
 
></TD
953
 
></TR
954
 
><TR
955
 
><TD
956
 
COLSPAN="2"
957
 
ALIGN="left"
958
 
><FONT
959
 
COLOR="#FFFFFF"
960
 
SIZE="3"
961
 
><B
962
 
>GdkPixbufLoader</B
963
 
></FONT
964
 
></TD
965
 
><TD
966
 
COLSPAN="2"
967
 
ALIGN="right"
968
 
><FONT
969
 
COLOR="#FFFFFF"
970
 
SIZE="3"
971
 
><B
972
 
><SPAN
973
 
CLASS="APPLICATION"
974
 
>gdk-pixbuf</SPAN
975
 
> Xlib initialization</B
976
 
></FONT
977
 
></TD
978
 
></TR
979
 
></TABLE
980
 
></DIV
981
 
></BODY
982
 
></HTML
983
 
>
 
 
b'\\ No newline at end of file'