~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/pygimp/doc/gimp-objects.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
2
 
<HTML
3
 
><HEAD
4
 
><TITLE
5
 
>Gimp Objects</TITLE
6
 
><META
7
 
NAME="GENERATOR"
8
 
CONTENT="Modular DocBook HTML Stylesheet"><LINK
9
 
REL="HOME"
10
 
TITLE="Gimp Python Documentation"
11
 
HREF="pygimp.html"><LINK
12
 
REL="PREVIOUS"
13
 
TITLE="Gimp Module Procedures"
14
 
HREF="gimp-module-procedures.html"><LINK
15
 
REL="NEXT"
16
 
TITLE="Support Modules"
17
 
HREF="support-modules.html"></HEAD
18
 
><BODY
19
 
><DIV
20
 
CLASS="NAVHEADER"
21
 
><TABLE
22
 
WIDTH="100%"
23
 
BORDER="0"
24
 
CELLPADDING="0"
25
 
CELLSPACING="0"
26
 
><TR
27
 
><TH
28
 
COLSPAN="3"
29
 
ALIGN="center"
30
 
>Gimp Python Documentation</TH
31
 
></TR
32
 
><TR
33
 
><TD
34
 
WIDTH="10%"
35
 
ALIGN="left"
36
 
VALIGN="bottom"
37
 
><A
38
 
HREF="gimp-module-procedures.html"
39
 
>Prev</A
40
 
></TD
41
 
><TD
42
 
WIDTH="80%"
43
 
ALIGN="center"
44
 
VALIGN="bottom"
45
 
></TD
46
 
><TD
47
 
WIDTH="10%"
48
 
ALIGN="right"
49
 
VALIGN="bottom"
50
 
><A
51
 
HREF="support-modules.html"
52
 
>Next</A
53
 
></TD
54
 
></TR
55
 
></TABLE
56
 
><HR
57
 
ALIGN="LEFT"
58
 
WIDTH="100%"></DIV
59
 
><DIV
60
 
CLASS="SECT1"
61
 
><H1
62
 
CLASS="SECT1"
63
 
><A
64
 
NAME="GIMP-OBJECTS"
65
 
>Gimp Objects</A
66
 
></H1
67
 
><P
68
 
>Gimp-Python implements a number of special object types that
69
 
    represent the different types of parameters you can pass to a PDB
70
 
    procedure.  Rather than just making these place holders, I have
71
 
    added a number of members and methods to them that allow a lot of
72
 
    configurability without directly calling PDB procedures.</P
73
 
><P
74
 
>There are also a couple of extra objects that allow low
75
 
    level manipulation of images.  These are tile objects (working)
76
 
    and pixel regions (not quite finished).</P
77
 
><DIV
78
 
CLASS="SECT2"
79
 
><H2
80
 
CLASS="SECT2"
81
 
><A
82
 
NAME="IMAGE-OBJECT"
83
 
>Image Object</A
84
 
></H2
85
 
><P
86
 
>This is the object that represents an open image.  In this
87
 
      section, <TT
88
 
CLASS="REPLACEABLE"
89
 
><I
90
 
>image</I
91
 
></TT
92
 
> represents a generic
93
 
      image object.</P
94
 
><DIV
95
 
CLASS="SECT3"
96
 
><H3
97
 
CLASS="SECT3"
98
 
><A
99
 
NAME="IMAGE-OBJECT-MEMBERS"
100
 
>Image Members</A
101
 
></H3
102
 
><P
103
 
></P
104
 
><P
105
 
></P
106
 
><DL
107
 
><DT
108
 
><TT
109
 
CLASS="REPLACEABLE"
110
 
><I
111
 
>image</I
112
 
></TT
113
 
>.<TT
114
 
CLASS="PARAMETER"
115
 
><I
116
 
>active_channel</I
117
 
></TT
118
 
></DT
119
 
><DD
120
 
><P
121
 
>This is the active channel of the image.  You can
122
 
              also assign to this member, or
123
 
              <TT
124
 
CLASS="PARAMETER"
125
 
><I
126
 
>None</I
127
 
></TT
128
 
> if there is no active
129
 
              channel.</P
130
 
></DD
131
 
><DT
132
 
><TT
133
 
CLASS="REPLACEABLE"
134
 
><I
135
 
>image</I
136
 
></TT
137
 
>.<TT
138
 
CLASS="PARAMETER"
139
 
><I
140
 
>active_layer</I
141
 
></TT
142
 
></DT
143
 
><DD
144
 
><P
145
 
>This is the active layer of the image.  You can
146
 
              also assign to this member, or
147
 
              <TT
148
 
CLASS="PARAMETER"
149
 
><I
150
 
>None</I
151
 
></TT
152
 
> if there is no active
153
 
              layer.</P
154
 
></DD
155
 
><DT
156
 
><TT
157
 
CLASS="REPLACEABLE"
158
 
><I
159
 
>image</I
160
 
></TT
161
 
>.<TT
162
 
CLASS="PARAMETER"
163
 
><I
164
 
>base_type</I
165
 
></TT
166
 
></DT
167
 
><DD
168
 
><P
169
 
>This is the type of the image (eg RGB, INDEXED).</P
170
 
></DD
171
 
><DT
172
 
><TT
173
 
CLASS="REPLACEABLE"
174
 
><I
175
 
>image</I
176
 
></TT
177
 
>.<TT
178
 
CLASS="PARAMETER"
179
 
><I
180
 
>channels</I
181
 
></TT
182
 
></DT
183
 
><DD
184
 
><P
185
 
>This is a list of the channels of the image.
186
 
              Altering this list has no effect, and you can not assign
187
 
              to this member.</P
188
 
></DD
189
 
><DT
190
 
><TT
191
 
CLASS="REPLACEABLE"
192
 
><I
193
 
>image</I
194
 
></TT
195
 
>.<TT
196
 
CLASS="PARAMETER"
197
 
><I
198
 
>cmap</I
199
 
></TT
200
 
></DT
201
 
><DD
202
 
><P
203
 
>This is the colour map for the image.</P
204
 
></DD
205
 
><DT
206
 
><TT
207
 
CLASS="REPLACEABLE"
208
 
><I
209
 
>image</I
210
 
></TT
211
 
>.<TT
212
 
CLASS="PARAMETER"
213
 
><I
214
 
>filename</I
215
 
></TT
216
 
></DT
217
 
><DD
218
 
><P
219
 
>This is the filename for the image.  A file load
220
 
              or save handler might assign to this.</P
221
 
></DD
222
 
><DT
223
 
><TT
224
 
CLASS="REPLACEABLE"
225
 
><I
226
 
>image</I
227
 
></TT
228
 
>.<TT
229
 
CLASS="PARAMETER"
230
 
><I
231
 
>height</I
232
 
></TT
233
 
></DT
234
 
><DD
235
 
><P
236
 
>This is the height of the image.  You can't assign
237
 
              to this member.</P
238
 
></DD
239
 
><DT
240
 
><TT
241
 
CLASS="REPLACEABLE"
242
 
><I
243
 
>image</I
244
 
></TT
245
 
>.<TT
246
 
CLASS="PARAMETER"
247
 
><I
248
 
>floating_selection</I
249
 
></TT
250
 
></DT
251
 
><DD
252
 
><P
253
 
>The floating selection layer, or
254
 
              <TT
255
 
CLASS="PARAMETER"
256
 
><I
257
 
>None</I
258
 
></TT
259
 
> if there is no floating
260
 
              selection.</P
261
 
></DD
262
 
><DT
263
 
><TT
264
 
CLASS="REPLACEABLE"
265
 
><I
266
 
>image</I
267
 
></TT
268
 
>.<TT
269
 
CLASS="PARAMETER"
270
 
><I
271
 
>layers</I
272
 
></TT
273
 
></DT
274
 
><DD
275
 
><P
276
 
>This is a list of the layers of the image.</P
277
 
></DD
278
 
><DT
279
 
><TT
280
 
CLASS="REPLACEABLE"
281
 
><I
282
 
>image</I
283
 
></TT
284
 
>.<TT
285
 
CLASS="PARAMETER"
286
 
><I
287
 
>selection</I
288
 
></TT
289
 
></DT
290
 
><DD
291
 
><P
292
 
>The selection mask for the image.</P
293
 
></DD
294
 
><DT
295
 
><TT
296
 
CLASS="REPLACEABLE"
297
 
><I
298
 
>image</I
299
 
></TT
300
 
>.<TT
301
 
CLASS="PARAMETER"
302
 
><I
303
 
>width</I
304
 
></TT
305
 
></DT
306
 
><DD
307
 
><P
308
 
>This is the width of the image.  You can't assign
309
 
              to this member.</P
310
 
></DD
311
 
></DL
312
 
></DIV
313
 
><DIV
314
 
CLASS="SECT3"
315
 
><H3
316
 
CLASS="SECT3"
317
 
><A
318
 
NAME="IMAGE-OBJECT-METHODS"
319
 
>Image Methods</A
320
 
></H3
321
 
><P
322
 
></P
323
 
><P
324
 
></P
325
 
><DL
326
 
><DT
327
 
><TT
328
 
CLASS="REPLACEABLE"
329
 
><I
330
 
>image</I
331
 
></TT
332
 
>.<TT
333
 
CLASS="FUNCTION"
334
 
><B
335
 
>add_channel</B
336
 
></TT
337
 
>(<TT
338
 
CLASS="PARAMETER"
339
 
><I
340
 
>channel</I
341
 
></TT
342
 
>,
343
 
            <TT
344
 
CLASS="PARAMETER"
345
 
><I
346
 
>position</I
347
 
></TT
348
 
>)</DT
349
 
><DD
350
 
><P
351
 
>Adds <TT
352
 
CLASS="PARAMETER"
353
 
><I
354
 
>channel</I
355
 
></TT
356
 
> to
357
 
              <TT
358
 
CLASS="REPLACEABLE"
359
 
><I
360
 
>image</I
361
 
></TT
362
 
> in position
363
 
              <TT
364
 
CLASS="PARAMETER"
365
 
><I
366
 
>position</I
367
 
></TT
368
 
>.</P
369
 
></DD
370
 
><DT
371
 
><TT
372
 
CLASS="REPLACEABLE"
373
 
><I
374
 
>image</I
375
 
></TT
376
 
>.<TT
377
 
CLASS="FUNCTION"
378
 
><B
379
 
>add_layer</B
380
 
></TT
381
 
>(<TT
382
 
CLASS="PARAMETER"
383
 
><I
384
 
>layer</I
385
 
></TT
386
 
>,
387
 
            <TT
388
 
CLASS="PARAMETER"
389
 
><I
390
 
>position</I
391
 
></TT
392
 
>)</DT
393
 
><DD
394
 
><P
395
 
>Adds <TT
396
 
CLASS="PARAMETER"
397
 
><I
398
 
>layer</I
399
 
></TT
400
 
> to
401
 
              <TT
402
 
CLASS="REPLACEABLE"
403
 
><I
404
 
>image</I
405
 
></TT
406
 
> in position
407
 
              <TT
408
 
CLASS="PARAMETER"
409
 
><I
410
 
>position</I
411
 
></TT
412
 
>.</P
413
 
></DD
414
 
><DT
415
 
><TT
416
 
CLASS="REPLACEABLE"
417
 
><I
418
 
>image</I
419
 
></TT
420
 
>.<TT
421
 
CLASS="FUNCTION"
422
 
><B
423
 
>add_layer_mask</B
424
 
></TT
425
 
>(<TT
426
 
CLASS="PARAMETER"
427
 
><I
428
 
>layer</I
429
 
></TT
430
 
>,
431
 
            <TT
432
 
CLASS="PARAMETER"
433
 
><I
434
 
>mask</I
435
 
></TT
436
 
>)</DT
437
 
><DD
438
 
><P
439
 
>Adds the mask <TT
440
 
CLASS="PARAMETER"
441
 
><I
442
 
>mask</I
443
 
></TT
444
 
> to
445
 
              <TT
446
 
CLASS="PARAMETER"
447
 
><I
448
 
>layer</I
449
 
></TT
450
 
>.</P
451
 
></DD
452
 
><DT
453
 
><TT
454
 
CLASS="REPLACEABLE"
455
 
><I
456
 
>image</I
457
 
></TT
458
 
>.<TT
459
 
CLASS="FUNCTION"
460
 
><B
461
 
>clean_all</B
462
 
></TT
463
 
>()</DT
464
 
><DD
465
 
><P
466
 
>Unsets the dirty flag on the image.</P
467
 
></DD
468
 
><DT
469
 
><TT
470
 
CLASS="REPLACEABLE"
471
 
><I
472
 
>image</I
473
 
></TT
474
 
>.<TT
475
 
CLASS="FUNCTION"
476
 
><B
477
 
>disable_undo</B
478
 
></TT
479
 
>()</DT
480
 
><DD
481
 
><P
482
 
>Disables undo for
483
 
              <TT
484
 
CLASS="REPLACEABLE"
485
 
><I
486
 
>image</I
487
 
></TT
488
 
>.</P
489
 
></DD
490
 
><DT
491
 
><TT
492
 
CLASS="REPLACEABLE"
493
 
><I
494
 
>image</I
495
 
></TT
496
 
>.<TT
497
 
CLASS="FUNCTION"
498
 
><B
499
 
>enable_undo</B
500
 
></TT
501
 
>()</DT
502
 
><DD
503
 
><P
504
 
>Enables undo for <TT
505
 
CLASS="REPLACEABLE"
506
 
><I
507
 
>image</I
508
 
></TT
509
 
>.
510
 
              You might use these commands round a plugin, so that the
511
 
              plugin's actions can be undone in a single step.</P
512
 
></DD
513
 
><DT
514
 
><TT
515
 
CLASS="REPLACEABLE"
516
 
><I
517
 
>image</I
518
 
></TT
519
 
>.<TT
520
 
CLASS="FUNCTION"
521
 
><B
522
 
>flatten</B
523
 
></TT
524
 
>()</DT
525
 
><DD
526
 
><P
527
 
>Returns the resulting layer after merging all the
528
 
              visible layers, discarding non visible ones and
529
 
              stripping the alpha channel.</P
530
 
></DD
531
 
><DT
532
 
><TT
533
 
CLASS="REPLACEABLE"
534
 
><I
535
 
>image</I
536
 
></TT
537
 
>.<TT
538
 
CLASS="FUNCTION"
539
 
><B
540
 
>get_component_active</B
541
 
></TT
542
 
>(<TT
543
 
CLASS="PARAMETER"
544
 
><I
545
 
>component</I
546
 
></TT
547
 
>)</DT
548
 
><DD
549
 
><P
550
 
>Returns true if <TT
551
 
CLASS="PARAMETER"
552
 
><I
553
 
>component</I
554
 
></TT
555
 
>
556
 
              (one of the <TT
557
 
CLASS="LITERAL"
558
 
>*_CHANNEL</TT
559
 
> constants) is
560
 
              active.</P
561
 
></DD
562
 
><DT
563
 
><TT
564
 
CLASS="REPLACEABLE"
565
 
><I
566
 
>image</I
567
 
></TT
568
 
>.<TT
569
 
CLASS="FUNCTION"
570
 
><B
571
 
>get_component_visible</B
572
 
></TT
573
 
>(<TT
574
 
CLASS="PARAMETER"
575
 
><I
576
 
>component</I
577
 
></TT
578
 
>)</DT
579
 
><DD
580
 
><P
581
 
>Returns true if <TT
582
 
CLASS="PARAMETER"
583
 
><I
584
 
>component</I
585
 
></TT
586
 
>
587
 
              is visible.</P
588
 
></DD
589
 
><DT
590
 
><TT
591
 
CLASS="REPLACEABLE"
592
 
><I
593
 
>image</I
594
 
></TT
595
 
>.<TT
596
 
CLASS="FUNCTION"
597
 
><B
598
 
>set_component_active</B
599
 
></TT
600
 
>(<TT
601
 
CLASS="PARAMETER"
602
 
><I
603
 
>component</I
604
 
></TT
605
 
>,
606
 
            <TT
607
 
CLASS="PARAMETER"
608
 
><I
609
 
>active</I
610
 
></TT
611
 
>)</DT
612
 
><DD
613
 
><P
614
 
>Sets the activeness of
615
 
              <TT
616
 
CLASS="PARAMETER"
617
 
><I
618
 
>component</I
619
 
></TT
620
 
>.</P
621
 
></DD
622
 
><DT
623
 
><TT
624
 
CLASS="REPLACEABLE"
625
 
><I
626
 
>image</I
627
 
></TT
628
 
>.<TT
629
 
CLASS="FUNCTION"
630
 
><B
631
 
>set_component_visible</B
632
 
></TT
633
 
>(<TT
634
 
CLASS="PARAMETER"
635
 
><I
636
 
>component</I
637
 
></TT
638
 
>,
639
 
            <TT
640
 
CLASS="PARAMETER"
641
 
><I
642
 
>active</I
643
 
></TT
644
 
>)</DT
645
 
><DD
646
 
><P
647
 
>Sets the visibility of
648
 
              <TT
649
 
CLASS="PARAMETER"
650
 
><I
651
 
>component</I
652
 
></TT
653
 
>.</P
654
 
></DD
655
 
><DT
656
 
><TT
657
 
CLASS="REPLACEABLE"
658
 
><I
659
 
>image</I
660
 
></TT
661
 
>.<TT
662
 
CLASS="FUNCTION"
663
 
><B
664
 
>lower_channel</B
665
 
></TT
666
 
>(<TT
667
 
CLASS="PARAMETER"
668
 
><I
669
 
>channel</I
670
 
></TT
671
 
>)</DT
672
 
><DD
673
 
><P
674
 
>Lowers <TT
675
 
CLASS="PARAMETER"
676
 
><I
677
 
>channel</I
678
 
></TT
679
 
>.</P
680
 
></DD
681
 
><DT
682
 
><TT
683
 
CLASS="REPLACEABLE"
684
 
><I
685
 
>image</I
686
 
></TT
687
 
>.<TT
688
 
CLASS="FUNCTION"
689
 
><B
690
 
>lower_layer</B
691
 
></TT
692
 
>(<TT
693
 
CLASS="PARAMETER"
694
 
><I
695
 
>layer</I
696
 
></TT
697
 
>)</DT
698
 
><DD
699
 
><P
700
 
>Lowers <TT
701
 
CLASS="PARAMETER"
702
 
><I
703
 
>layer</I
704
 
></TT
705
 
>.</P
706
 
></DD
707
 
><DT
708
 
><TT
709
 
CLASS="REPLACEABLE"
710
 
><I
711
 
>image</I
712
 
></TT
713
 
>.<TT
714
 
CLASS="FUNCTION"
715
 
><B
716
 
>merge_visible_layers</B
717
 
></TT
718
 
>(<TT
719
 
CLASS="PARAMETER"
720
 
><I
721
 
>type</I
722
 
></TT
723
 
>)</DT
724
 
><DD
725
 
><P
726
 
>Merges the visible layers of
727
 
              <TT
728
 
CLASS="REPLACEABLE"
729
 
><I
730
 
>image</I
731
 
></TT
732
 
> using the given merge
733
 
              type.</P
734
 
></DD
735
 
><DT
736
 
><TT
737
 
CLASS="REPLACEABLE"
738
 
><I
739
 
>image</I
740
 
></TT
741
 
>.<TT
742
 
CLASS="FUNCTION"
743
 
><B
744
 
>pick_correlate_layer</B
745
 
></TT
746
 
>(<TT
747
 
CLASS="PARAMETER"
748
 
><I
749
 
>x</I
750
 
></TT
751
 
>,
752
 
            <TT
753
 
CLASS="PARAMETER"
754
 
><I
755
 
>y</I
756
 
></TT
757
 
>)</DT
758
 
><DD
759
 
><P
760
 
>Returns the layer that is visible at the point
761
 
              <TT
762
 
CLASS="PARAMETER"
763
 
><I
764
 
>(x,y)</I
765
 
></TT
766
 
>, or
767
 
              <TT
768
 
CLASS="PARAMETER"
769
 
><I
770
 
>None</I
771
 
></TT
772
 
> if no layer matches.</P
773
 
></DD
774
 
><DT
775
 
><TT
776
 
CLASS="REPLACEABLE"
777
 
><I
778
 
>image</I
779
 
></TT
780
 
>.<TT
781
 
CLASS="FUNCTION"
782
 
><B
783
 
>raise_channel</B
784
 
></TT
785
 
>(<TT
786
 
CLASS="PARAMETER"
787
 
><I
788
 
>channel</I
789
 
></TT
790
 
>)</DT
791
 
><DD
792
 
><P
793
 
>Raises <TT
794
 
CLASS="PARAMETER"
795
 
><I
796
 
>channel</I
797
 
></TT
798
 
>.</P
799
 
></DD
800
 
><DT
801
 
><TT
802
 
CLASS="REPLACEABLE"
803
 
><I
804
 
>image</I
805
 
></TT
806
 
>.<TT
807
 
CLASS="FUNCTION"
808
 
><B
809
 
>raise_layer</B
810
 
></TT
811
 
>(<TT
812
 
CLASS="PARAMETER"
813
 
><I
814
 
>layer</I
815
 
></TT
816
 
>)</DT
817
 
><DD
818
 
><P
819
 
>Raises <TT
820
 
CLASS="PARAMETER"
821
 
><I
822
 
>layer</I
823
 
></TT
824
 
>.</P
825
 
></DD
826
 
><DT
827
 
><TT
828
 
CLASS="REPLACEABLE"
829
 
><I
830
 
>image</I
831
 
></TT
832
 
>.<TT
833
 
CLASS="FUNCTION"
834
 
><B
835
 
>remove_channel</B
836
 
></TT
837
 
>(<TT
838
 
CLASS="PARAMETER"
839
 
><I
840
 
>channel</I
841
 
></TT
842
 
>)</DT
843
 
><DD
844
 
><P
845
 
>Removes <TT
846
 
CLASS="PARAMETER"
847
 
><I
848
 
>channel</I
849
 
></TT
850
 
> from
851
 
              <TT
852
 
CLASS="REPLACEABLE"
853
 
><I
854
 
>image</I
855
 
></TT
856
 
>.</P
857
 
></DD
858
 
><DT
859
 
><TT
860
 
CLASS="REPLACEABLE"
861
 
><I
862
 
>image</I
863
 
></TT
864
 
>.<TT
865
 
CLASS="FUNCTION"
866
 
><B
867
 
>remove_layer</B
868
 
></TT
869
 
>(<TT
870
 
CLASS="PARAMETER"
871
 
><I
872
 
>layer</I
873
 
></TT
874
 
>)</DT
875
 
><DD
876
 
><P
877
 
>Removes <TT
878
 
CLASS="PARAMETER"
879
 
><I
880
 
>layer</I
881
 
></TT
882
 
> from
883
 
              <TT
884
 
CLASS="REPLACEABLE"
885
 
><I
886
 
>image</I
887
 
></TT
888
 
>.</P
889
 
></DD
890
 
><DT
891
 
><TT
892
 
CLASS="REPLACEABLE"
893
 
><I
894
 
>image</I
895
 
></TT
896
 
>.<TT
897
 
CLASS="FUNCTION"
898
 
><B
899
 
>remove_layer_mask</B
900
 
></TT
901
 
>(<TT
902
 
CLASS="PARAMETER"
903
 
><I
904
 
>layer</I
905
 
></TT
906
 
>,
907
 
            <TT
908
 
CLASS="PARAMETER"
909
 
><I
910
 
>mode</I
911
 
></TT
912
 
>)</DT
913
 
><DD
914
 
><P
915
 
>Removes the mask from
916
 
              <TT
917
 
CLASS="PARAMETER"
918
 
><I
919
 
>layer</I
920
 
></TT
921
 
>, with the given
922
 
              <TT
923
 
CLASS="PARAMETER"
924
 
><I
925
 
>mode</I
926
 
></TT
927
 
> (either APPLY or
928
 
              DISCARD).</P
929
 
></DD
930
 
><DT
931
 
><TT
932
 
CLASS="REPLACEABLE"
933
 
><I
934
 
>image</I
935
 
></TT
936
 
>.<TT
937
 
CLASS="FUNCTION"
938
 
><B
939
 
>resize</B
940
 
></TT
941
 
>(<TT
942
 
CLASS="PARAMETER"
943
 
><I
944
 
>width</I
945
 
></TT
946
 
>,
947
 
            <TT
948
 
CLASS="PARAMETER"
949
 
><I
950
 
>height</I
951
 
></TT
952
 
>, <TT
953
 
CLASS="PARAMETER"
954
 
><I
955
 
>x</I
956
 
></TT
957
 
>,
958
 
            <TT
959
 
CLASS="PARAMETER"
960
 
><I
961
 
>y</I
962
 
></TT
963
 
>)</DT
964
 
><DD
965
 
><P
966
 
>Resizes the image to size <TT
967
 
CLASS="PARAMETER"
968
 
><I
969
 
>(width,
970
 
              height)</I
971
 
></TT
972
 
> and places the old contents at
973
 
              position <TT
974
 
CLASS="PARAMETER"
975
 
><I
976
 
>(x,y)</I
977
 
></TT
978
 
>.</P
979
 
></DD
980
 
></DL
981
 
></DIV
982
 
></DIV
983
 
><DIV
984
 
CLASS="SECT2"
985
 
><H2
986
 
CLASS="SECT2"
987
 
><A
988
 
NAME="CHANNEL-OBJECT"
989
 
>Channel Objects</A
990
 
></H2
991
 
><P
992
 
>These objects represent a Gimp Image's colour channels.
993
 
      In this section, <TT
994
 
CLASS="REPLACEABLE"
995
 
><I
996
 
>channel</I
997
 
></TT
998
 
> will refer
999
 
      to a generic channel object.</P
1000
 
><DIV
1001
 
CLASS="SECT3"
1002
 
><H3
1003
 
CLASS="SECT3"
1004
 
><A
1005
 
NAME="CHANNEL-OBJECT-MEMBERS"
1006
 
>Channel Members</A
1007
 
></H3
1008
 
><P
1009
 
></P
1010
 
><P
1011
 
></P
1012
 
><DL
1013
 
><DT
1014
 
><TT
1015
 
CLASS="REPLACEABLE"
1016
 
><I
1017
 
>channel</I
1018
 
></TT
1019
 
>.<TT
1020
 
CLASS="PARAMETER"
1021
 
><I
1022
 
>colour</I
1023
 
></TT
1024
 
>
1025
 
            or
1026
 
            <TT
1027
 
CLASS="REPLACEABLE"
1028
 
><I
1029
 
>channel</I
1030
 
></TT
1031
 
>.<TT
1032
 
CLASS="PARAMETER"
1033
 
><I
1034
 
>color</I
1035
 
></TT
1036
 
></DT
1037
 
><DD
1038
 
><P
1039
 
>The colour of the channel.</P
1040
 
></DD
1041
 
><DT
1042
 
><TT
1043
 
CLASS="REPLACEABLE"
1044
 
><I
1045
 
>channel</I
1046
 
></TT
1047
 
>.<TT
1048
 
CLASS="PARAMETER"
1049
 
><I
1050
 
>height</I
1051
 
></TT
1052
 
></DT
1053
 
><DD
1054
 
><P
1055
 
>The height of the channel.</P
1056
 
></DD
1057
 
><DT
1058
 
><TT
1059
 
CLASS="REPLACEABLE"
1060
 
><I
1061
 
>channel</I
1062
 
></TT
1063
 
>.<TT
1064
 
CLASS="PARAMETER"
1065
 
><I
1066
 
>width</I
1067
 
></TT
1068
 
></DT
1069
 
><DD
1070
 
><P
1071
 
>The width of the channel.</P
1072
 
></DD
1073
 
><DT
1074
 
><TT
1075
 
CLASS="REPLACEABLE"
1076
 
><I
1077
 
>channel</I
1078
 
></TT
1079
 
>.<TT
1080
 
CLASS="PARAMETER"
1081
 
><I
1082
 
>image</I
1083
 
></TT
1084
 
></DT
1085
 
><DD
1086
 
><P
1087
 
>The image the channel belongs to, or
1088
 
              <TT
1089
 
CLASS="PARAMETER"
1090
 
><I
1091
 
>None</I
1092
 
></TT
1093
 
> if it isn't attached
1094
 
              yet.</P
1095
 
></DD
1096
 
><DT
1097
 
><TT
1098
 
CLASS="REPLACEABLE"
1099
 
><I
1100
 
>channel</I
1101
 
></TT
1102
 
>.<TT
1103
 
CLASS="PARAMETER"
1104
 
><I
1105
 
>layer</I
1106
 
></TT
1107
 
></DT
1108
 
><DD
1109
 
><P
1110
 
>The channel's layer (??) or
1111
 
              <TT
1112
 
CLASS="PARAMETER"
1113
 
><I
1114
 
>None</I
1115
 
></TT
1116
 
> if one doesn't exist.</P
1117
 
></DD
1118
 
><DT
1119
 
><TT
1120
 
CLASS="REPLACEABLE"
1121
 
><I
1122
 
>channel</I
1123
 
></TT
1124
 
>.<TT
1125
 
CLASS="PARAMETER"
1126
 
><I
1127
 
>layer_mask</I
1128
 
></TT
1129
 
></DT
1130
 
><DD
1131
 
><P
1132
 
>Non zero if the channel is a layer mask.</P
1133
 
></DD
1134
 
><DT
1135
 
><TT
1136
 
CLASS="REPLACEABLE"
1137
 
><I
1138
 
>channel</I
1139
 
></TT
1140
 
>.<TT
1141
 
CLASS="PARAMETER"
1142
 
><I
1143
 
>name</I
1144
 
></TT
1145
 
></DT
1146
 
><DD
1147
 
><P
1148
 
>The name of the channel.</P
1149
 
></DD
1150
 
><DT
1151
 
><TT
1152
 
CLASS="REPLACEABLE"
1153
 
><I
1154
 
>channel</I
1155
 
></TT
1156
 
>.<TT
1157
 
CLASS="PARAMETER"
1158
 
><I
1159
 
>opacity</I
1160
 
></TT
1161
 
></DT
1162
 
><DD
1163
 
><P
1164
 
>The opacity of the channel.</P
1165
 
></DD
1166
 
><DT
1167
 
><TT
1168
 
CLASS="REPLACEABLE"
1169
 
><I
1170
 
>channel</I
1171
 
></TT
1172
 
>.<TT
1173
 
CLASS="PARAMETER"
1174
 
><I
1175
 
>show_masked</I
1176
 
></TT
1177
 
></DT
1178
 
><DD
1179
 
><P
1180
 
>The show_masked value of the channel.</P
1181
 
></DD
1182
 
><DT
1183
 
><TT
1184
 
CLASS="REPLACEABLE"
1185
 
><I
1186
 
>channel</I
1187
 
></TT
1188
 
>.<TT
1189
 
CLASS="PARAMETER"
1190
 
><I
1191
 
>visible</I
1192
 
></TT
1193
 
></DT
1194
 
><DD
1195
 
><P
1196
 
>Non-zero if the channel is visible.</P
1197
 
></DD
1198
 
></DL
1199
 
></DIV
1200
 
><DIV
1201
 
CLASS="SECT3"
1202
 
><H3
1203
 
CLASS="SECT3"
1204
 
><A
1205
 
NAME="CHANNEL-OBJECT-METHODS"
1206
 
>Channel Methods</A
1207
 
></H3
1208
 
><P
1209
 
></P
1210
 
><P
1211
 
></P
1212
 
><DL
1213
 
><DT
1214
 
><TT
1215
 
CLASS="REPLACEABLE"
1216
 
><I
1217
 
>channel</I
1218
 
></TT
1219
 
>.<TT
1220
 
CLASS="FUNCTION"
1221
 
><B
1222
 
>copy</B
1223
 
></TT
1224
 
>()</DT
1225
 
><DD
1226
 
><P
1227
 
>returns a copy of the channel.</P
1228
 
></DD
1229
 
></DL
1230
 
></DIV
1231
 
></DIV
1232
 
><DIV
1233
 
CLASS="SECT2"
1234
 
><H2
1235
 
CLASS="SECT2"
1236
 
><A
1237
 
NAME="LAYER-OBJECT"
1238
 
>Layer Objects</A
1239
 
></H2
1240
 
><P
1241
 
>Layer objects represent the layers of a Gimp image.  In
1242
 
      this section I will refer to a generic layer called
1243
 
      <TT
1244
 
CLASS="REPLACEABLE"
1245
 
><I
1246
 
>layer</I
1247
 
></TT
1248
 
>.</P
1249
 
><DIV
1250
 
CLASS="SECT3"
1251
 
><H3
1252
 
CLASS="SECT3"
1253
 
><A
1254
 
NAME="LAYER-OBJECT-MEMBERS"
1255
 
>Layer Members</A
1256
 
></H3
1257
 
><P
1258
 
></P
1259
 
><P
1260
 
></P
1261
 
><DL
1262
 
><DT
1263
 
><TT
1264
 
CLASS="REPLACEABLE"
1265
 
><I
1266
 
>layer</I
1267
 
></TT
1268
 
>.<TT
1269
 
CLASS="PARAMETER"
1270
 
><I
1271
 
>apply_mask</I
1272
 
></TT
1273
 
></DT
1274
 
><DD
1275
 
><P
1276
 
>The apply mask setting. (non zero if the layer
1277
 
              mask is being composited with the layer's alpha
1278
 
              channel).</P
1279
 
></DD
1280
 
><DT
1281
 
><TT
1282
 
CLASS="REPLACEABLE"
1283
 
><I
1284
 
>layer</I
1285
 
></TT
1286
 
>.<TT
1287
 
CLASS="PARAMETER"
1288
 
><I
1289
 
>bpp</I
1290
 
></TT
1291
 
></DT
1292
 
><DD
1293
 
><P
1294
 
>The number of bytes per pixel.</P
1295
 
></DD
1296
 
><DT
1297
 
><TT
1298
 
CLASS="REPLACEABLE"
1299
 
><I
1300
 
>layer</I
1301
 
></TT
1302
 
>.<TT
1303
 
CLASS="PARAMETER"
1304
 
><I
1305
 
>edit_mask</I
1306
 
></TT
1307
 
></DT
1308
 
><DD
1309
 
><P
1310
 
>The edit mask setting.  (non zero if the mask is
1311
 
              active, rather than the layer).</P
1312
 
></DD
1313
 
><DT
1314
 
><TT
1315
 
CLASS="REPLACEABLE"
1316
 
><I
1317
 
>layer</I
1318
 
></TT
1319
 
>.<TT
1320
 
CLASS="PARAMETER"
1321
 
><I
1322
 
>height</I
1323
 
></TT
1324
 
></DT
1325
 
><DD
1326
 
><P
1327
 
>The height of the layer.</P
1328
 
></DD
1329
 
><DT
1330
 
><TT
1331
 
CLASS="REPLACEABLE"
1332
 
><I
1333
 
>layer</I
1334
 
></TT
1335
 
>.<TT
1336
 
CLASS="PARAMETER"
1337
 
><I
1338
 
>image</I
1339
 
></TT
1340
 
></DT
1341
 
><DD
1342
 
><P
1343
 
>The image the layer is part of, or
1344
 
              <TT
1345
 
CLASS="PARAMETER"
1346
 
><I
1347
 
>None</I
1348
 
></TT
1349
 
> if the layer isn't
1350
 
              attached.</P
1351
 
></DD
1352
 
><DT
1353
 
><TT
1354
 
CLASS="REPLACEABLE"
1355
 
><I
1356
 
>layer</I
1357
 
></TT
1358
 
>.<TT
1359
 
CLASS="PARAMETER"
1360
 
><I
1361
 
>is_floating_selection</I
1362
 
></TT
1363
 
></DT
1364
 
><DD
1365
 
><P
1366
 
>Non zero if this layer is the image's floating
1367
 
              selection.</P
1368
 
></DD
1369
 
><DT
1370
 
><TT
1371
 
CLASS="REPLACEABLE"
1372
 
><I
1373
 
>layer</I
1374
 
></TT
1375
 
>.<TT
1376
 
CLASS="PARAMETER"
1377
 
><I
1378
 
>mask</I
1379
 
></TT
1380
 
></DT
1381
 
><DD
1382
 
><P
1383
 
>The layer's mask, or <TT
1384
 
CLASS="PARAMETER"
1385
 
><I
1386
 
>None</I
1387
 
></TT
1388
 
>
1389
 
              if it doesn't have one.</P
1390
 
></DD
1391
 
><DT
1392
 
><TT
1393
 
CLASS="REPLACEABLE"
1394
 
><I
1395
 
>layer</I
1396
 
></TT
1397
 
>.<TT
1398
 
CLASS="PARAMETER"
1399
 
><I
1400
 
>mode</I
1401
 
></TT
1402
 
></DT
1403
 
><DD
1404
 
><P
1405
 
>The mode of the layer.</P
1406
 
></DD
1407
 
><DT
1408
 
><TT
1409
 
CLASS="REPLACEABLE"
1410
 
><I
1411
 
>layer</I
1412
 
></TT
1413
 
>.<TT
1414
 
CLASS="PARAMETER"
1415
 
><I
1416
 
>name</I
1417
 
></TT
1418
 
></DT
1419
 
><DD
1420
 
><P
1421
 
>The name of the layer.</P
1422
 
></DD
1423
 
><DT
1424
 
><TT
1425
 
CLASS="REPLACEABLE"
1426
 
><I
1427
 
>layer</I
1428
 
></TT
1429
 
>.<TT
1430
 
CLASS="PARAMETER"
1431
 
><I
1432
 
>opacity</I
1433
 
></TT
1434
 
></DT
1435
 
><DD
1436
 
><P
1437
 
>The opacity of the layer.</P
1438
 
></DD
1439
 
><DT
1440
 
><TT
1441
 
CLASS="REPLACEABLE"
1442
 
><I
1443
 
>layer</I
1444
 
></TT
1445
 
>.<TT
1446
 
CLASS="PARAMETER"
1447
 
><I
1448
 
>preserve_transparency</I
1449
 
></TT
1450
 
></DT
1451
 
><DD
1452
 
><P
1453
 
>The layer's preserve transparency setting.</P
1454
 
></DD
1455
 
></DL
1456
 
></DIV
1457
 
><DIV
1458
 
CLASS="SECT3"
1459
 
><H3
1460
 
CLASS="SECT3"
1461
 
><A
1462
 
NAME="LAYER-OBJECT-METHODS"
1463
 
>Layer Methods</A
1464
 
></H3
1465
 
><P
1466
 
></P
1467
 
><P
1468
 
></P
1469
 
><DL
1470
 
><DT
1471
 
><TT
1472
 
CLASS="REPLACEABLE"
1473
 
><I
1474
 
>layer</I
1475
 
></TT
1476
 
>.<TT
1477
 
CLASS="FUNCTION"
1478
 
><B
1479
 
>add_alpha</B
1480
 
></TT
1481
 
>()</DT
1482
 
><DD
1483
 
><P
1484
 
>Adds an alpha component to the layer.</P
1485
 
></DD
1486
 
><DT
1487
 
><TT
1488
 
CLASS="REPLACEABLE"
1489
 
><I
1490
 
>layer</I
1491
 
></TT
1492
 
>.<TT
1493
 
CLASS="FUNCTION"
1494
 
><B
1495
 
>copy</B
1496
 
></TT
1497
 
>(<TT
1498
 
CLASS="PARAMETER"
1499
 
><I
1500
 
>[alpha]</I
1501
 
></TT
1502
 
>)</DT
1503
 
><DD
1504
 
><P
1505
 
>Creates a copy of the layer, optionally with an
1506
 
              alpha layer.</P
1507
 
></DD
1508
 
><DT
1509
 
><TT
1510
 
CLASS="REPLACEABLE"
1511
 
><I
1512
 
>layer</I
1513
 
></TT
1514
 
>.<TT
1515
 
CLASS="FUNCTION"
1516
 
><B
1517
 
>create_mask</B
1518
 
></TT
1519
 
>(<TT
1520
 
CLASS="PARAMETER"
1521
 
><I
1522
 
>type</I
1523
 
></TT
1524
 
>)</DT
1525
 
><DD
1526
 
><P
1527
 
>Creates a layer mask of type
1528
 
              <TT
1529
 
CLASS="PARAMETER"
1530
 
><I
1531
 
>type</I
1532
 
></TT
1533
 
>.</P
1534
 
></DD
1535
 
><DT
1536
 
><TT
1537
 
CLASS="REPLACEABLE"
1538
 
><I
1539
 
>layer</I
1540
 
></TT
1541
 
>.<TT
1542
 
CLASS="FUNCTION"
1543
 
><B
1544
 
>resize</B
1545
 
></TT
1546
 
>(<TT
1547
 
CLASS="PARAMETER"
1548
 
><I
1549
 
>w</I
1550
 
></TT
1551
 
>,
1552
 
            <TT
1553
 
CLASS="PARAMETER"
1554
 
><I
1555
 
>h</I
1556
 
></TT
1557
 
>, <TT
1558
 
CLASS="PARAMETER"
1559
 
><I
1560
 
>x</I
1561
 
></TT
1562
 
>,
1563
 
            <TT
1564
 
CLASS="PARAMETER"
1565
 
><I
1566
 
>y</I
1567
 
></TT
1568
 
>)</DT
1569
 
><DD
1570
 
><P
1571
 
>Resizes the layer to <TT
1572
 
CLASS="PARAMETER"
1573
 
><I
1574
 
>(w,
1575
 
              h)</I
1576
 
></TT
1577
 
>, positioning the original contents at
1578
 
              <TT
1579
 
CLASS="PARAMETER"
1580
 
><I
1581
 
>(x,y)</I
1582
 
></TT
1583
 
>.</P
1584
 
></DD
1585
 
><DT
1586
 
><TT
1587
 
CLASS="REPLACEABLE"
1588
 
><I
1589
 
>layer</I
1590
 
></TT
1591
 
>.<TT
1592
 
CLASS="FUNCTION"
1593
 
><B
1594
 
>scale</B
1595
 
></TT
1596
 
>(<TT
1597
 
CLASS="PARAMETER"
1598
 
><I
1599
 
>h</I
1600
 
></TT
1601
 
>,
1602
 
            <TT
1603
 
CLASS="PARAMETER"
1604
 
><I
1605
 
>w</I
1606
 
></TT
1607
 
>,
1608
 
            <TT
1609
 
CLASS="PARAMETER"
1610
 
><I
1611
 
>origin</I
1612
 
></TT
1613
 
>)</DT
1614
 
><DD
1615
 
><P
1616
 
>Scales the layer to <TT
1617
 
CLASS="PARAMETER"
1618
 
><I
1619
 
>(w, h)</I
1620
 
></TT
1621
 
>,
1622
 
              using the specified <TT
1623
 
CLASS="PARAMETER"
1624
 
><I
1625
 
>origin</I
1626
 
></TT
1627
 
> (local
1628
 
              or image).</P
1629
 
></DD
1630
 
><DT
1631
 
><TT
1632
 
CLASS="REPLACEABLE"
1633
 
><I
1634
 
>layer</I
1635
 
></TT
1636
 
>.<TT
1637
 
CLASS="FUNCTION"
1638
 
><B
1639
 
>set_offsets</B
1640
 
></TT
1641
 
>(<TT
1642
 
CLASS="PARAMETER"
1643
 
><I
1644
 
>x</I
1645
 
></TT
1646
 
>,
1647
 
            <TT
1648
 
CLASS="PARAMETER"
1649
 
><I
1650
 
>y</I
1651
 
></TT
1652
 
>)</DT
1653
 
><DD
1654
 
><P
1655
 
>Sets the offset of the layer, relative to the
1656
 
              image's origin</P
1657
 
></DD
1658
 
><DT
1659
 
><TT
1660
 
CLASS="REPLACEABLE"
1661
 
><I
1662
 
>layer</I
1663
 
></TT
1664
 
>.<TT
1665
 
CLASS="FUNCTION"
1666
 
><B
1667
 
>translate</B
1668
 
></TT
1669
 
>(<TT
1670
 
CLASS="PARAMETER"
1671
 
><I
1672
 
>x</I
1673
 
></TT
1674
 
>,
1675
 
            <TT
1676
 
CLASS="PARAMETER"
1677
 
><I
1678
 
>y</I
1679
 
></TT
1680
 
>)</DT
1681
 
><DD
1682
 
><P
1683
 
>Moves the layer to <TT
1684
 
CLASS="PARAMETER"
1685
 
><I
1686
 
>(x, y)</I
1687
 
></TT
1688
 
>
1689
 
              relative to its current position.</P
1690
 
></DD
1691
 
></DL
1692
 
></DIV
1693
 
></DIV
1694
 
><DIV
1695
 
CLASS="SECT2"
1696
 
><H2
1697
 
CLASS="SECT2"
1698
 
><A
1699
 
NAME="DRAWABLE-OBJECT"
1700
 
>Drawable Objects</A
1701
 
></H2
1702
 
><P
1703
 
>Both layers and channels are drawables.  Hence there are a
1704
 
      number of operations that can be performed on both objects.
1705
 
      They also have some common attributes and methods.  In the
1706
 
      description of these attributes, I will refer to a generic
1707
 
      drawable called <TT
1708
 
CLASS="REPLACEABLE"
1709
 
><I
1710
 
>drawable</I
1711
 
></TT
1712
 
>.</P
1713
 
><DIV
1714
 
CLASS="SECT3"
1715
 
><H3
1716
 
CLASS="SECT3"
1717
 
><A
1718
 
NAME="DRAWABLE-OBJECT-MEMBERS"
1719
 
>Drawable Members</A
1720
 
></H3
1721
 
><P
1722
 
></P
1723
 
><P
1724
 
></P
1725
 
><DL
1726
 
><DT
1727
 
><TT
1728
 
CLASS="REPLACEABLE"
1729
 
><I
1730
 
>drawable</I
1731
 
></TT
1732
 
>.<TT
1733
 
CLASS="PARAMETER"
1734
 
><I
1735
 
>bpp</I
1736
 
></TT
1737
 
></DT
1738
 
><DD
1739
 
><P
1740
 
>The number of bytes per pixel.</P
1741
 
></DD
1742
 
><DT
1743
 
><TT
1744
 
CLASS="REPLACEABLE"
1745
 
><I
1746
 
>drawable</I
1747
 
></TT
1748
 
>.<TT
1749
 
CLASS="PARAMETER"
1750
 
><I
1751
 
>is_colour</I
1752
 
></TT
1753
 
>
1754
 
            or
1755
 
            <TT
1756
 
CLASS="REPLACEABLE"
1757
 
><I
1758
 
>drawable</I
1759
 
></TT
1760
 
>.<TT
1761
 
CLASS="PARAMETER"
1762
 
><I
1763
 
>is_color</I
1764
 
></TT
1765
 
>
1766
 
            or
1767
 
            <TT
1768
 
CLASS="REPLACEABLE"
1769
 
><I
1770
 
>drawable</I
1771
 
></TT
1772
 
>.<TT
1773
 
CLASS="PARAMETER"
1774
 
><I
1775
 
>is_rgb</I
1776
 
></TT
1777
 
></DT
1778
 
><DD
1779
 
><P
1780
 
>Non zero if the drawable is colour.</P
1781
 
></DD
1782
 
><DT
1783
 
><TT
1784
 
CLASS="REPLACEABLE"
1785
 
><I
1786
 
>drawable</I
1787
 
></TT
1788
 
>.<TT
1789
 
CLASS="PARAMETER"
1790
 
><I
1791
 
>is_grey</I
1792
 
></TT
1793
 
>
1794
 
            or
1795
 
            <TT
1796
 
CLASS="REPLACEABLE"
1797
 
><I
1798
 
>drawable</I
1799
 
></TT
1800
 
>.<TT
1801
 
CLASS="PARAMETER"
1802
 
><I
1803
 
>is_gray</I
1804
 
></TT
1805
 
></DT
1806
 
><DD
1807
 
><P
1808
 
>Non zero if the drawable is greyscale.</P
1809
 
></DD
1810
 
><DT
1811
 
><TT
1812
 
CLASS="REPLACEABLE"
1813
 
><I
1814
 
>drawable</I
1815
 
></TT
1816
 
>.<TT
1817
 
CLASS="PARAMETER"
1818
 
><I
1819
 
>has_alpha</I
1820
 
></TT
1821
 
></DT
1822
 
><DD
1823
 
><P
1824
 
>Non zero if the drawable has an alpha channel.</P
1825
 
></DD
1826
 
><DT
1827
 
><TT
1828
 
CLASS="REPLACEABLE"
1829
 
><I
1830
 
>drawable</I
1831
 
></TT
1832
 
>.<TT
1833
 
CLASS="PARAMETER"
1834
 
><I
1835
 
>height</I
1836
 
></TT
1837
 
></DT
1838
 
><DD
1839
 
><P
1840
 
>The height of the drawable.</P
1841
 
></DD
1842
 
><DT
1843
 
><TT
1844
 
CLASS="REPLACEABLE"
1845
 
><I
1846
 
>drawable</I
1847
 
></TT
1848
 
>.<TT
1849
 
CLASS="PARAMETER"
1850
 
><I
1851
 
>image</I
1852
 
></TT
1853
 
></DT
1854
 
><DD
1855
 
><P
1856
 
>The image the drawable belongs to.</P
1857
 
></DD
1858
 
><DT
1859
 
><TT
1860
 
CLASS="REPLACEABLE"
1861
 
><I
1862
 
>drawable</I
1863
 
></TT
1864
 
>.<TT
1865
 
CLASS="PARAMETER"
1866
 
><I
1867
 
>is_indexed</I
1868
 
></TT
1869
 
></DT
1870
 
><DD
1871
 
><P
1872
 
>Non zero if the drawable uses an indexed colour
1873
 
              scheme.</P
1874
 
></DD
1875
 
><DT
1876
 
><TT
1877
 
CLASS="REPLACEABLE"
1878
 
><I
1879
 
>drawable</I
1880
 
></TT
1881
 
>.<TT
1882
 
CLASS="PARAMETER"
1883
 
><I
1884
 
>mask_bounds</I
1885
 
></TT
1886
 
></DT
1887
 
><DD
1888
 
><P
1889
 
>The bounds of the drawable's selection.</P
1890
 
></DD
1891
 
><DT
1892
 
><TT
1893
 
CLASS="REPLACEABLE"
1894
 
><I
1895
 
>drawable</I
1896
 
></TT
1897
 
>.<TT
1898
 
CLASS="PARAMETER"
1899
 
><I
1900
 
>name</I
1901
 
></TT
1902
 
></DT
1903
 
><DD
1904
 
><P
1905
 
>The name of the drawable.</P
1906
 
></DD
1907
 
><DT
1908
 
><TT
1909
 
CLASS="REPLACEABLE"
1910
 
><I
1911
 
>drawable</I
1912
 
></TT
1913
 
>.<TT
1914
 
CLASS="PARAMETER"
1915
 
><I
1916
 
>offsets</I
1917
 
></TT
1918
 
></DT
1919
 
><DD
1920
 
><P
1921
 
>The offset of the top left hand corner of the
1922
 
              drawable.</P
1923
 
></DD
1924
 
><DT
1925
 
><TT
1926
 
CLASS="REPLACEABLE"
1927
 
><I
1928
 
>drawable</I
1929
 
></TT
1930
 
>.<TT
1931
 
CLASS="PARAMETER"
1932
 
><I
1933
 
>type</I
1934
 
></TT
1935
 
></DT
1936
 
><DD
1937
 
><P
1938
 
>The type of the drawable.</P
1939
 
></DD
1940
 
><DT
1941
 
><TT
1942
 
CLASS="REPLACEABLE"
1943
 
><I
1944
 
>drawable</I
1945
 
></TT
1946
 
>.<TT
1947
 
CLASS="PARAMETER"
1948
 
><I
1949
 
>visible</I
1950
 
></TT
1951
 
></DT
1952
 
><DD
1953
 
><P
1954
 
>Non zero if the drawable is visible.</P
1955
 
></DD
1956
 
><DT
1957
 
><TT
1958
 
CLASS="REPLACEABLE"
1959
 
><I
1960
 
>drawable</I
1961
 
></TT
1962
 
>.<TT
1963
 
CLASS="PARAMETER"
1964
 
><I
1965
 
>width</I
1966
 
></TT
1967
 
></DT
1968
 
><DD
1969
 
><P
1970
 
>The width of the drawable.</P
1971
 
></DD
1972
 
></DL
1973
 
></DIV
1974
 
><DIV
1975
 
CLASS="SECT3"
1976
 
><H3
1977
 
CLASS="SECT3"
1978
 
><A
1979
 
NAME="DRAWABLE-OBJECT-METHODS"
1980
 
>Drawable Methods</A
1981
 
></H3
1982
 
><P
1983
 
></P
1984
 
><P
1985
 
></P
1986
 
><DL
1987
 
><DT
1988
 
><TT
1989
 
CLASS="REPLACEABLE"
1990
 
><I
1991
 
>drawable</I
1992
 
></TT
1993
 
>.<TT
1994
 
CLASS="FUNCTION"
1995
 
><B
1996
 
>fill</B
1997
 
></TT
1998
 
>(<TT
1999
 
CLASS="PARAMETER"
2000
 
><I
2001
 
>fill_type</I
2002
 
></TT
2003
 
>)</DT
2004
 
><DD
2005
 
><P
2006
 
>Fills the drawable with given
2007
 
              <TT
2008
 
CLASS="PARAMETER"
2009
 
><I
2010
 
>fill_type</I
2011
 
></TT
2012
 
> (one of the
2013
 
              <TT
2014
 
CLASS="LITERAL"
2015
 
>*_FILL</TT
2016
 
> constants).</P
2017
 
></DD
2018
 
><DT
2019
 
><TT
2020
 
CLASS="REPLACEABLE"
2021
 
><I
2022
 
>drawable</I
2023
 
></TT
2024
 
>.<TT
2025
 
CLASS="FUNCTION"
2026
 
><B
2027
 
>flush</B
2028
 
></TT
2029
 
>()</DT
2030
 
><DD
2031
 
><P
2032
 
>Flush the changes to the drawable.</P
2033
 
></DD
2034
 
><DT
2035
 
><TT
2036
 
CLASS="REPLACEABLE"
2037
 
><I
2038
 
>drawable</I
2039
 
></TT
2040
 
>.<TT
2041
 
CLASS="FUNCTION"
2042
 
><B
2043
 
>get_pixel_rgn</B
2044
 
></TT
2045
 
>(<TT
2046
 
CLASS="PARAMETER"
2047
 
><I
2048
 
>x</I
2049
 
></TT
2050
 
>,
2051
 
            <TT
2052
 
CLASS="PARAMETER"
2053
 
><I
2054
 
>y</I
2055
 
></TT
2056
 
>, <TT
2057
 
CLASS="PARAMETER"
2058
 
><I
2059
 
>w</I
2060
 
></TT
2061
 
>,
2062
 
            <TT
2063
 
CLASS="PARAMETER"
2064
 
><I
2065
 
>h</I
2066
 
></TT
2067
 
>, [<TT
2068
 
CLASS="PARAMETER"
2069
 
><I
2070
 
>dirty</I
2071
 
></TT
2072
 
>,
2073
 
            [<TT
2074
 
CLASS="PARAMETER"
2075
 
><I
2076
 
>shadow</I
2077
 
></TT
2078
 
>])</DT
2079
 
><DD
2080
 
><P
2081
 
>Creates a pixel region for the drawable.  It will
2082
 
              cover the region with origin
2083
 
              <TT
2084
 
CLASS="PARAMETER"
2085
 
><I
2086
 
>(x,y)</I
2087
 
></TT
2088
 
> and dimensions <TT
2089
 
CLASS="PARAMETER"
2090
 
><I
2091
 
>w
2092
 
              x h</I
2093
 
></TT
2094
 
>.  The <TT
2095
 
CLASS="PARAMETER"
2096
 
><I
2097
 
>dirty</I
2098
 
></TT
2099
 
>
2100
 
              argument sets whether any changes to the pixel region
2101
 
              will be reflected in the drawable (default is TRUE).
2102
 
              The <TT
2103
 
CLASS="PARAMETER"
2104
 
><I
2105
 
>shadow</I
2106
 
></TT
2107
 
> argument sets whether
2108
 
              the pixel region acts on the shadow tiles or not
2109
 
              (default is FALSE).  If you draw on the shadow tiles,
2110
 
              you must call
2111
 
              <TT
2112
 
CLASS="REPLACEABLE"
2113
 
><I
2114
 
>drawable</I
2115
 
></TT
2116
 
>.<TT
2117
 
CLASS="FUNCTION"
2118
 
><B
2119
 
>merge_shadow</B
2120
 
></TT
2121
 
>()
2122
 
              for changes to take effect.</P
2123
 
></DD
2124
 
><DT
2125
 
><TT
2126
 
CLASS="REPLACEABLE"
2127
 
><I
2128
 
>drawable</I
2129
 
></TT
2130
 
>.<TT
2131
 
CLASS="FUNCTION"
2132
 
><B
2133
 
>get_tile</B
2134
 
></TT
2135
 
>(<TT
2136
 
CLASS="PARAMETER"
2137
 
><I
2138
 
>shadow</I
2139
 
></TT
2140
 
>,
2141
 
            <TT
2142
 
CLASS="PARAMETER"
2143
 
><I
2144
 
>row</I
2145
 
></TT
2146
 
>,
2147
 
            <TT
2148
 
CLASS="PARAMETER"
2149
 
><I
2150
 
>col</I
2151
 
></TT
2152
 
>)</DT
2153
 
><DD
2154
 
><P
2155
 
>Get a tile at <TT
2156
 
CLASS="PARAMETER"
2157
 
><I
2158
 
>(row,
2159
 
              col)</I
2160
 
></TT
2161
 
>. Either on or off the
2162
 
              <TT
2163
 
CLASS="PARAMETER"
2164
 
><I
2165
 
>shadow</I
2166
 
></TT
2167
 
> buffer.</P
2168
 
></DD
2169
 
><DT
2170
 
><TT
2171
 
CLASS="REPLACEABLE"
2172
 
><I
2173
 
>drawable</I
2174
 
></TT
2175
 
>.<TT
2176
 
CLASS="FUNCTION"
2177
 
><B
2178
 
>get_tile2</B
2179
 
></TT
2180
 
>(<TT
2181
 
CLASS="PARAMETER"
2182
 
><I
2183
 
>shadow</I
2184
 
></TT
2185
 
>,
2186
 
            <TT
2187
 
CLASS="PARAMETER"
2188
 
><I
2189
 
>x</I
2190
 
></TT
2191
 
>, <TT
2192
 
CLASS="PARAMETER"
2193
 
><I
2194
 
>y</I
2195
 
></TT
2196
 
>)</DT
2197
 
><DD
2198
 
><P
2199
 
>Get the tile that contains the pixel
2200
 
              <TT
2201
 
CLASS="PARAMETER"
2202
 
><I
2203
 
>(x, y)</I
2204
 
></TT
2205
 
>.</P
2206
 
></DD
2207
 
><DT
2208
 
><TT
2209
 
CLASS="REPLACEABLE"
2210
 
><I
2211
 
>drawable</I
2212
 
></TT
2213
 
>.<TT
2214
 
CLASS="FUNCTION"
2215
 
><B
2216
 
>merge_shadow</B
2217
 
></TT
2218
 
>()</DT
2219
 
><DD
2220
 
><P
2221
 
>Merge the shadow buffer back into the
2222
 
              drawable.</P
2223
 
></DD
2224
 
><DT
2225
 
><TT
2226
 
CLASS="REPLACEABLE"
2227
 
><I
2228
 
>drawable</I
2229
 
></TT
2230
 
>.<TT
2231
 
CLASS="FUNCTION"
2232
 
><B
2233
 
>update</B
2234
 
></TT
2235
 
>(<TT
2236
 
CLASS="PARAMETER"
2237
 
><I
2238
 
>x</I
2239
 
></TT
2240
 
>,
2241
 
            <TT
2242
 
CLASS="PARAMETER"
2243
 
><I
2244
 
>y</I
2245
 
></TT
2246
 
>, <TT
2247
 
CLASS="PARAMETER"
2248
 
><I
2249
 
>w</I
2250
 
></TT
2251
 
>,
2252
 
            <TT
2253
 
CLASS="PARAMETER"
2254
 
><I
2255
 
>h</I
2256
 
></TT
2257
 
>)</DT
2258
 
><DD
2259
 
><P
2260
 
>Update the given portion of the drawable.</P
2261
 
></DD
2262
 
></DL
2263
 
></DIV
2264
 
></DIV
2265
 
><DIV
2266
 
CLASS="SECT2"
2267
 
><H2
2268
 
CLASS="SECT2"
2269
 
><A
2270
 
NAME="TILE-OBJECT"
2271
 
>Tile Objects</A
2272
 
></H2
2273
 
><P
2274
 
>Tile objects represent the way Gimp stores information.  A
2275
 
      tile is basically just a 64x64 pixel region of the drawable.
2276
 
      The reason Gimp breaks the image into small pieces like this is
2277
 
      so that the whole image doesn't have to be loaded into memory in
2278
 
      order to alter one part of it.  This becomes important with
2279
 
      larger images.</P
2280
 
><P
2281
 
>In Gimp-Python, you would use Tiles if you wanted to
2282
 
      perform some low level operation on the image, instead of using
2283
 
      procedures in the PDB.  This type of object gives a Gimp-Python
2284
 
      plugin the power of a C plugin, rather than just the power of a
2285
 
      Script-Fu script.  Tile objects are created with either the
2286
 
      <TT
2287
 
CLASS="REPLACEABLE"
2288
 
><I
2289
 
>drawable</I
2290
 
></TT
2291
 
>.<TT
2292
 
CLASS="FUNCTION"
2293
 
><B
2294
 
>get_tile</B
2295
 
></TT
2296
 
>()
2297
 
      or
2298
 
      <TT
2299
 
CLASS="REPLACEABLE"
2300
 
><I
2301
 
>drawable</I
2302
 
></TT
2303
 
>.<TT
2304
 
CLASS="FUNCTION"
2305
 
><B
2306
 
>get_tile2</B
2307
 
></TT
2308
 
>()
2309
 
      functions.  In this section, I will refer to a generic tile
2310
 
      object named <TT
2311
 
CLASS="REPLACEABLE"
2312
 
><I
2313
 
>tile</I
2314
 
></TT
2315
 
>.</P
2316
 
><DIV
2317
 
CLASS="SECT3"
2318
 
><H3
2319
 
CLASS="SECT3"
2320
 
><A
2321
 
NAME="TILE-OBJECT-MEMBERS"
2322
 
>Tile Members</A
2323
 
></H3
2324
 
><P
2325
 
>All tile members are read only.</P
2326
 
><P
2327
 
></P
2328
 
><DL
2329
 
><DT
2330
 
><TT
2331
 
CLASS="REPLACEABLE"
2332
 
><I
2333
 
>tile</I
2334
 
></TT
2335
 
>.<TT
2336
 
CLASS="PARAMETER"
2337
 
><I
2338
 
>bpp</I
2339
 
></TT
2340
 
></DT
2341
 
><DD
2342
 
><P
2343
 
>The number of bytes per pixel.</P
2344
 
></DD
2345
 
><DT
2346
 
><TT
2347
 
CLASS="REPLACEABLE"
2348
 
><I
2349
 
>tile</I
2350
 
></TT
2351
 
>.<TT
2352
 
CLASS="PARAMETER"
2353
 
><I
2354
 
>dirty</I
2355
 
></TT
2356
 
></DT
2357
 
><DD
2358
 
><P
2359
 
>If there have been changes to the tile since it
2360
 
              was last flushed.</P
2361
 
></DD
2362
 
><DT
2363
 
><TT
2364
 
CLASS="REPLACEABLE"
2365
 
><I
2366
 
>tile</I
2367
 
></TT
2368
 
>.<TT
2369
 
CLASS="PARAMETER"
2370
 
><I
2371
 
>drawable</I
2372
 
></TT
2373
 
></DT
2374
 
><DD
2375
 
><P
2376
 
>The drawable that the tile is from.</P
2377
 
></DD
2378
 
><DT
2379
 
><TT
2380
 
CLASS="REPLACEABLE"
2381
 
><I
2382
 
>tile</I
2383
 
></TT
2384
 
>.<TT
2385
 
CLASS="PARAMETER"
2386
 
><I
2387
 
>eheight</I
2388
 
></TT
2389
 
></DT
2390
 
><DD
2391
 
><P
2392
 
>The actual height of the tile.</P
2393
 
></DD
2394
 
><DT
2395
 
><TT
2396
 
CLASS="REPLACEABLE"
2397
 
><I
2398
 
>tile</I
2399
 
></TT
2400
 
>.<TT
2401
 
CLASS="PARAMETER"
2402
 
><I
2403
 
>ewidth</I
2404
 
></TT
2405
 
></DT
2406
 
><DD
2407
 
><P
2408
 
>The actual width of the tile.</P
2409
 
></DD
2410
 
><DT
2411
 
><TT
2412
 
CLASS="REPLACEABLE"
2413
 
><I
2414
 
>tile</I
2415
 
></TT
2416
 
>.<TT
2417
 
CLASS="PARAMETER"
2418
 
><I
2419
 
>ref_count</I
2420
 
></TT
2421
 
></DT
2422
 
><DD
2423
 
><P
2424
 
>The reference count of the tile.  (this is
2425
 
              independent of the Python object reference
2426
 
              count).</P
2427
 
></DD
2428
 
><DT
2429
 
><TT
2430
 
CLASS="REPLACEABLE"
2431
 
><I
2432
 
>tile</I
2433
 
></TT
2434
 
>.<TT
2435
 
CLASS="PARAMETER"
2436
 
><I
2437
 
>shadow</I
2438
 
></TT
2439
 
></DT
2440
 
><DD
2441
 
><P
2442
 
>Non zero if the tile is part of the shadow
2443
 
              buffer.</P
2444
 
></DD
2445
 
></DL
2446
 
></DIV
2447
 
><DIV
2448
 
CLASS="SECT3"
2449
 
><H3
2450
 
CLASS="SECT3"
2451
 
><A
2452
 
NAME="TILE-OBJECT-METHODS"
2453
 
>Tile Methods</A
2454
 
></H3
2455
 
><P
2456
 
></P
2457
 
><P
2458
 
></P
2459
 
><DL
2460
 
><DT
2461
 
><TT
2462
 
CLASS="REPLACEABLE"
2463
 
><I
2464
 
>tile</I
2465
 
></TT
2466
 
>.<TT
2467
 
CLASS="FUNCTION"
2468
 
><B
2469
 
>flush</B
2470
 
></TT
2471
 
>()</DT
2472
 
><DD
2473
 
><P
2474
 
>Flush any changes in the tile.  Note that the tile
2475
 
              is automatically flushed when the Python object is
2476
 
              deleted from memory.</P
2477
 
></DD
2478
 
></DL
2479
 
></DIV
2480
 
><DIV
2481
 
CLASS="SECT3"
2482
 
><H3
2483
 
CLASS="SECT3"
2484
 
><A
2485
 
NAME="TILE-OBJECT-MAPPING"
2486
 
>Tile Mapping Behaviour</A
2487
 
></H3
2488
 
><P
2489
 
>Tile objects also act as a mapping, or sequence.  You
2490
 
        can access the pixels in the tile in one of two ways.  You can
2491
 
        either access them with a single number, which refers to its
2492
 
        position in the tile
2493
 
        (eg. <TT
2494
 
CLASS="REPLACEABLE"
2495
 
><I
2496
 
>tile</I
2497
 
></TT
2498
 
><TT
2499
 
CLASS="LITERAL"
2500
 
>[64]</TT
2501
 
>
2502
 
        refers to the first pixel in the second row of a 64x64 pixel
2503
 
        tile).  The other way is with a tuple, representing the
2504
 
        coordinates on the tile
2505
 
        (eg. <TT
2506
 
CLASS="REPLACEABLE"
2507
 
><I
2508
 
>tile</I
2509
 
></TT
2510
 
><TT
2511
 
CLASS="LITERAL"
2512
 
>[0, 1]</TT
2513
 
>
2514
 
        refers to the first pixel on the second row of the
2515
 
        tile).</P
2516
 
><P
2517
 
>The type of these subscripts is a string of length
2518
 
        <TT
2519
 
CLASS="REPLACEABLE"
2520
 
><I
2521
 
>tile</I
2522
 
></TT
2523
 
>.<TT
2524
 
CLASS="PARAMETER"
2525
 
><I
2526
 
>bpp</I
2527
 
></TT
2528
 
>.
2529
 
        When you assign to a subscript, the dirty flag is
2530
 
        automatically set on the tile, so you don't have to explicitly
2531
 
        set the flag, or flush the tile.</P
2532
 
></DIV
2533
 
></DIV
2534
 
><DIV
2535
 
CLASS="SECT2"
2536
 
><H2
2537
 
CLASS="SECT2"
2538
 
><A
2539
 
NAME="PREGION-OBJECT"
2540
 
>Pixel Regions</A
2541
 
></H2
2542
 
><P
2543
 
>Pixel region objects give an interface for low level
2544
 
      operations to act on large regions of an image, instead of on
2545
 
      small 64x64 pixel tiles.  In this section I will refer to a
2546
 
      generic pixel region called <TT
2547
 
CLASS="REPLACEABLE"
2548
 
><I
2549
 
>pr</I
2550
 
></TT
2551
 
>.  For
2552
 
      an example of a pixel region's use, please see the example
2553
 
      plugin <TT
2554
 
CLASS="FILENAME"
2555
 
>whirlpinch.py</TT
2556
 
>.</P
2557
 
><DIV
2558
 
CLASS="SECT3"
2559
 
><H3
2560
 
CLASS="SECT3"
2561
 
><A
2562
 
NAME="PREGION-OBJECT-MEMBERS"
2563
 
>Pixel Region Members</A
2564
 
></H3
2565
 
><P
2566
 
></P
2567
 
><P
2568
 
></P
2569
 
><DL
2570
 
><DT
2571
 
><TT
2572
 
CLASS="REPLACEABLE"
2573
 
><I
2574
 
>pr</I
2575
 
></TT
2576
 
>.<TT
2577
 
CLASS="PARAMETER"
2578
 
><I
2579
 
>drawable</I
2580
 
></TT
2581
 
></DT
2582
 
><DD
2583
 
><P
2584
 
>The drawable this pixel region is for.</P
2585
 
></DD
2586
 
><DT
2587
 
><TT
2588
 
CLASS="REPLACEABLE"
2589
 
><I
2590
 
>pr</I
2591
 
></TT
2592
 
>.<TT
2593
 
CLASS="PARAMETER"
2594
 
><I
2595
 
>bpp</I
2596
 
></TT
2597
 
></DT
2598
 
><DD
2599
 
><P
2600
 
>The number of bytes per pixel for the drawable.</P
2601
 
></DD
2602
 
><DT
2603
 
><TT
2604
 
CLASS="REPLACEABLE"
2605
 
><I
2606
 
>pr</I
2607
 
></TT
2608
 
>.<TT
2609
 
CLASS="PARAMETER"
2610
 
><I
2611
 
>rowstride</I
2612
 
></TT
2613
 
></DT
2614
 
><DD
2615
 
><P
2616
 
>The rowstride for the pixel region.</P
2617
 
></DD
2618
 
><DT
2619
 
><TT
2620
 
CLASS="REPLACEABLE"
2621
 
><I
2622
 
>pr</I
2623
 
></TT
2624
 
>.<TT
2625
 
CLASS="PARAMETER"
2626
 
><I
2627
 
>x</I
2628
 
></TT
2629
 
></DT
2630
 
><DD
2631
 
><P
2632
 
>The x coordinate of the top left hand corner.</P
2633
 
></DD
2634
 
><DT
2635
 
><TT
2636
 
CLASS="REPLACEABLE"
2637
 
><I
2638
 
>pr</I
2639
 
></TT
2640
 
>.<TT
2641
 
CLASS="PARAMETER"
2642
 
><I
2643
 
>y</I
2644
 
></TT
2645
 
></DT
2646
 
><DD
2647
 
><P
2648
 
>The y coordinate of the top left hand corner.</P
2649
 
></DD
2650
 
><DT
2651
 
><TT
2652
 
CLASS="REPLACEABLE"
2653
 
><I
2654
 
>pr</I
2655
 
></TT
2656
 
>.<TT
2657
 
CLASS="PARAMETER"
2658
 
><I
2659
 
>w</I
2660
 
></TT
2661
 
></DT
2662
 
><DD
2663
 
><P
2664
 
>The width of the pixel region.</P
2665
 
></DD
2666
 
><DT
2667
 
><TT
2668
 
CLASS="REPLACEABLE"
2669
 
><I
2670
 
>pr</I
2671
 
></TT
2672
 
>.<TT
2673
 
CLASS="PARAMETER"
2674
 
><I
2675
 
>h</I
2676
 
></TT
2677
 
></DT
2678
 
><DD
2679
 
><P
2680
 
>The height of the pixel region.</P
2681
 
></DD
2682
 
><DT
2683
 
><TT
2684
 
CLASS="REPLACEABLE"
2685
 
><I
2686
 
>pr</I
2687
 
></TT
2688
 
>.<TT
2689
 
CLASS="PARAMETER"
2690
 
><I
2691
 
>dirty</I
2692
 
></TT
2693
 
></DT
2694
 
><DD
2695
 
><P
2696
 
>Non zero if changes to the pixel region will be
2697
 
              reflected in the drawable.</P
2698
 
></DD
2699
 
><DT
2700
 
><TT
2701
 
CLASS="REPLACEABLE"
2702
 
><I
2703
 
>pr</I
2704
 
></TT
2705
 
>.<TT
2706
 
CLASS="PARAMETER"
2707
 
><I
2708
 
>shadow</I
2709
 
></TT
2710
 
></DT
2711
 
><DD
2712
 
><P
2713
 
>Non zero if the pixel region acts on the shadow
2714
 
              tiles of the drawable.</P
2715
 
></DD
2716
 
></DL
2717
 
></DIV
2718
 
><DIV
2719
 
CLASS="SECT3"
2720
 
><H3
2721
 
CLASS="SECT3"
2722
 
><A
2723
 
NAME="PREGION-OBJECT-METHODS"
2724
 
>Pixel Region Methods</A
2725
 
></H3
2726
 
><P
2727
 
></P
2728
 
><P
2729
 
></P
2730
 
><DL
2731
 
><DT
2732
 
><TT
2733
 
CLASS="REPLACEABLE"
2734
 
><I
2735
 
>pr</I
2736
 
></TT
2737
 
>.<TT
2738
 
CLASS="FUNCTION"
2739
 
><B
2740
 
>resize</B
2741
 
></TT
2742
 
>(<TT
2743
 
CLASS="PARAMETER"
2744
 
><I
2745
 
>x</I
2746
 
></TT
2747
 
>,
2748
 
            <TT
2749
 
CLASS="PARAMETER"
2750
 
><I
2751
 
>y</I
2752
 
></TT
2753
 
>, <TT
2754
 
CLASS="PARAMETER"
2755
 
><I
2756
 
>w</I
2757
 
></TT
2758
 
>,
2759
 
            <TT
2760
 
CLASS="PARAMETER"
2761
 
><I
2762
 
>h</I
2763
 
></TT
2764
 
>)</DT
2765
 
><DD
2766
 
><P
2767
 
>resize the pixel region so that it operates on the
2768
 
              the region with corner <TT
2769
 
CLASS="PARAMETER"
2770
 
><I
2771
 
>(x, y)</I
2772
 
></TT
2773
 
>
2774
 
              with dimensions <TT
2775
 
CLASS="PARAMETER"
2776
 
><I
2777
 
>w x h</I
2778
 
></TT
2779
 
>.</P
2780
 
></DD
2781
 
></DL
2782
 
></DIV
2783
 
><DIV
2784
 
CLASS="SECT3"
2785
 
><H3
2786
 
CLASS="SECT3"
2787
 
><A
2788
 
NAME="PREGION-OBJECT-MAPPING"
2789
 
>Pixel Region Mapping Behaviour</A
2790
 
></H3
2791
 
><P
2792
 
>The pixel region acts as a mapping.  The index is a
2793
 
        2-tuple with components that are either integers or slices.
2794
 
        The subscripts may be read and assigned to.  The type of the
2795
 
        subscripts is a string containing the binary data of the
2796
 
        requested region.  Here is a description of the posible
2797
 
        operations:</P
2798
 
><P
2799
 
></P
2800
 
><DL
2801
 
><DT
2802
 
><TT
2803
 
CLASS="REPLACEABLE"
2804
 
><I
2805
 
>pr</I
2806
 
></TT
2807
 
>[<TT
2808
 
CLASS="PARAMETER"
2809
 
><I
2810
 
>x</I
2811
 
></TT
2812
 
>,
2813
 
            <TT
2814
 
CLASS="PARAMETER"
2815
 
><I
2816
 
>y</I
2817
 
></TT
2818
 
>]</DT
2819
 
><DD
2820
 
><P
2821
 
>Get/Set the pixel at
2822
 
              <TT
2823
 
CLASS="PARAMETER"
2824
 
><I
2825
 
>(x,y)</I
2826
 
></TT
2827
 
></P
2828
 
></DD
2829
 
><DT
2830
 
><TT
2831
 
CLASS="REPLACEABLE"
2832
 
><I
2833
 
>pr</I
2834
 
></TT
2835
 
>[<TT
2836
 
CLASS="PARAMETER"
2837
 
><I
2838
 
>x1</I
2839
 
></TT
2840
 
>:<TT
2841
 
CLASS="PARAMETER"
2842
 
><I
2843
 
>x2</I
2844
 
></TT
2845
 
>,
2846
 
            <TT
2847
 
CLASS="PARAMETER"
2848
 
><I
2849
 
>y</I
2850
 
></TT
2851
 
>]</DT
2852
 
><DD
2853
 
><P
2854
 
>Get/Set the row starting at <TT
2855
 
CLASS="PARAMETER"
2856
 
><I
2857
 
>(x1,
2858
 
              y)</I
2859
 
></TT
2860
 
>, width <TT
2861
 
CLASS="PARAMETER"
2862
 
><I
2863
 
>x2 -
2864
 
              x1</I
2865
 
></TT
2866
 
>.</P
2867
 
></DD
2868
 
><DT
2869
 
><TT
2870
 
CLASS="REPLACEABLE"
2871
 
><I
2872
 
>pr</I
2873
 
></TT
2874
 
>[<TT
2875
 
CLASS="PARAMETER"
2876
 
><I
2877
 
>x</I
2878
 
></TT
2879
 
>,
2880
 
            <TT
2881
 
CLASS="PARAMETER"
2882
 
><I
2883
 
>y1</I
2884
 
></TT
2885
 
>:<TT
2886
 
CLASS="PARAMETER"
2887
 
><I
2888
 
>y2</I
2889
 
></TT
2890
 
>]</DT
2891
 
><DD
2892
 
><P
2893
 
>Get/Set the column starting at <TT
2894
 
CLASS="PARAMETER"
2895
 
><I
2896
 
>(x,
2897
 
              y1)</I
2898
 
></TT
2899
 
>, height <TT
2900
 
CLASS="PARAMETER"
2901
 
><I
2902
 
>y2 -
2903
 
              y1</I
2904
 
></TT
2905
 
>.</P
2906
 
></DD
2907
 
><DT
2908
 
><TT
2909
 
CLASS="REPLACEABLE"
2910
 
><I
2911
 
>pr</I
2912
 
></TT
2913
 
>[<TT
2914
 
CLASS="PARAMETER"
2915
 
><I
2916
 
>x1</I
2917
 
></TT
2918
 
>:<TT
2919
 
CLASS="PARAMETER"
2920
 
><I
2921
 
>x2</I
2922
 
></TT
2923
 
>,
2924
 
            <TT
2925
 
CLASS="PARAMETER"
2926
 
><I
2927
 
>y1</I
2928
 
></TT
2929
 
>:<TT
2930
 
CLASS="PARAMETER"
2931
 
><I
2932
 
>y1</I
2933
 
></TT
2934
 
>]</DT
2935
 
><DD
2936
 
><P
2937
 
>Get/Set the rectangle starting at <TT
2938
 
CLASS="PARAMETER"
2939
 
><I
2940
 
>(x1,
2941
 
              y1)</I
2942
 
></TT
2943
 
>, width <TT
2944
 
CLASS="PARAMETER"
2945
 
><I
2946
 
>x2 - x1</I
2947
 
></TT
2948
 
>
2949
 
              and height <TT
2950
 
CLASS="PARAMETER"
2951
 
><I
2952
 
>y2 - y1</I
2953
 
></TT
2954
 
>.</P
2955
 
></DD
2956
 
></DL
2957
 
></DIV
2958
 
></DIV
2959
 
></DIV
2960
 
><DIV
2961
 
CLASS="NAVFOOTER"
2962
 
><HR
2963
 
ALIGN="LEFT"
2964
 
WIDTH="100%"><TABLE
2965
 
WIDTH="100%"
2966
 
BORDER="0"
2967
 
CELLPADDING="0"
2968
 
CELLSPACING="0"
2969
 
><TR
2970
 
><TD
2971
 
WIDTH="33%"
2972
 
ALIGN="left"
2973
 
VALIGN="top"
2974
 
><A
2975
 
HREF="gimp-module-procedures.html"
2976
 
>Prev</A
2977
 
></TD
2978
 
><TD
2979
 
WIDTH="34%"
2980
 
ALIGN="center"
2981
 
VALIGN="top"
2982
 
><A
2983
 
HREF="pygimp.html"
2984
 
>Home</A
2985
 
></TD
2986
 
><TD
2987
 
WIDTH="33%"
2988
 
ALIGN="right"
2989
 
VALIGN="top"
2990
 
><A
2991
 
HREF="support-modules.html"
2992
 
>Next</A
2993
 
></TD
2994
 
></TR
2995
 
><TR
2996
 
><TD
2997
 
WIDTH="33%"
2998
 
ALIGN="left"
2999
 
VALIGN="top"
3000
 
>Gimp Module Procedures</TD
3001
 
><TD
3002
 
WIDTH="34%"
3003
 
ALIGN="center"
3004
 
VALIGN="top"
3005
 
>&nbsp;</TD
3006
 
><TD
3007
 
WIDTH="33%"
3008
 
ALIGN="right"
3009
 
VALIGN="top"
3010
 
>Support Modules</TD
3011
 
></TR
3012
 
></TABLE
3013
 
></DIV
3014
 
></BODY
3015
 
></HTML
3016
 
>
 
 
b'\\ No newline at end of file'