rmagick 2.12.2 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +12 -0
- data/Doxyfile +1514 -0
- data/README.html +2 -171
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +2 -2
- data/doc/ilist.html +2 -2
- data/doc/image1.html +2 -2
- data/doc/image2.html +2 -2
- data/doc/image3.html +2 -2
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +2 -2
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +2 -2
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +12 -8
- data/doc/usage.html +2 -2
- data/ext/RMagick/MANIFEST +311 -309
- data/ext/RMagick/extconf.rb +27 -3
- data/ext/RMagick/rmagick.c +151 -69
- data/ext/RMagick/rmagick.h +218 -158
- data/ext/RMagick/rmdraw.c +616 -261
- data/ext/RMagick/rmenum.c +373 -179
- data/ext/RMagick/rmfill.c +166 -71
- data/ext/RMagick/rmilist.c +323 -146
- data/ext/RMagick/rmimage.c +4994 -1756
- data/ext/RMagick/rminfo.c +1004 -366
- data/ext/RMagick/rmmain.c +62 -27
- data/ext/RMagick/rmmontage.c +222 -97
- data/ext/RMagick/rmpixel.c +454 -155
- data/ext/RMagick/rmstruct.c +305 -153
- data/ext/RMagick/rmutil.c +531 -263
- data/lib/rvg/misc.rb +1 -1
- data/rmagick.gemspec +3 -3
- metadata +313 -310
data/ext/RMagick/rmenum.c
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
/**************************************************************************//**
|
2
|
+
* Enumeration methods.
|
3
|
+
*
|
4
|
+
* Copyright © 2002 - 2009 by Timothy P. Hunter
|
5
|
+
*
|
6
|
+
* Changes since Nov. 2009 copyright © by Benjamin Thomas and Omer Bar-or
|
7
|
+
*
|
8
|
+
* @file rmenum.c
|
9
|
+
* @version $Id: rmenum.c,v 1.9 2009/12/20 02:33:33 baror Exp $
|
10
|
+
* @author Tim Hunter
|
11
|
+
******************************************************************************/
|
11
12
|
|
12
13
|
#include "rmagick.h"
|
13
14
|
|
@@ -22,10 +23,14 @@ static VALUE Enum_type_inspect(VALUE);
|
|
22
23
|
|
23
24
|
|
24
25
|
|
25
|
-
|
26
|
-
*
|
27
|
-
*
|
28
|
-
|
26
|
+
/**
|
27
|
+
* Set up a subclass of Enum.
|
28
|
+
*
|
29
|
+
* No Ruby usage (internal function)
|
30
|
+
*
|
31
|
+
* @param tag the name of the subclass
|
32
|
+
* @return the subclass
|
33
|
+
*/
|
29
34
|
VALUE
|
30
35
|
rm_define_enum_type(const char *tag)
|
31
36
|
{
|
@@ -40,10 +45,16 @@ rm_define_enum_type(const char *tag)
|
|
40
45
|
}
|
41
46
|
|
42
47
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
48
|
+
/**
|
49
|
+
* Construct a new Enum subclass instance.
|
50
|
+
*
|
51
|
+
* No Ruby usage (internal function)
|
52
|
+
*
|
53
|
+
* @param class the subclass
|
54
|
+
* @param sym the symbol
|
55
|
+
* @param val the value for the symbol
|
56
|
+
* @return a new instance of class
|
57
|
+
*/
|
47
58
|
VALUE
|
48
59
|
rm_enum_new(VALUE class, VALUE sym, VALUE val)
|
49
60
|
{
|
@@ -55,10 +66,14 @@ rm_enum_new(VALUE class, VALUE sym, VALUE val)
|
|
55
66
|
}
|
56
67
|
|
57
68
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
69
|
+
/**
|
70
|
+
* Enum class alloc function.
|
71
|
+
*
|
72
|
+
* No Ruby usage (internal function)
|
73
|
+
*
|
74
|
+
* @param class the Ruby class to use
|
75
|
+
* @return a new enumerator
|
76
|
+
*/
|
62
77
|
VALUE
|
63
78
|
Enum_alloc(VALUE class)
|
64
79
|
{
|
@@ -71,12 +86,19 @@ Enum_alloc(VALUE class)
|
|
71
86
|
}
|
72
87
|
|
73
88
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
89
|
+
/**
|
90
|
+
* "Case equal" operator for Enum.
|
91
|
+
*
|
92
|
+
* Ruby usage:
|
93
|
+
* - @verbatim Enum#=== @endverbatim
|
94
|
+
*
|
95
|
+
* Notes:
|
96
|
+
* - Yes, I know "case equal" is a misnomer.
|
97
|
+
*
|
98
|
+
* @param self this object
|
99
|
+
* @param other the other object
|
100
|
+
* @return true or false
|
101
|
+
*/
|
80
102
|
VALUE
|
81
103
|
Enum_case_eq(VALUE self, VALUE other)
|
82
104
|
{
|
@@ -93,10 +115,17 @@ Enum_case_eq(VALUE self, VALUE other)
|
|
93
115
|
}
|
94
116
|
|
95
117
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
118
|
+
/**
|
119
|
+
* Initialize a new Enum instance.
|
120
|
+
*
|
121
|
+
* Ruby usage:
|
122
|
+
* - @verbatim Enum#initialize(sym,val) @endverbatim
|
123
|
+
*
|
124
|
+
* @param self this object
|
125
|
+
* @param sym the symbol
|
126
|
+
* @param val the value for the symbol
|
127
|
+
* @return self
|
128
|
+
*/
|
100
129
|
VALUE
|
101
130
|
Enum_initialize(VALUE self, VALUE sym, VALUE val)
|
102
131
|
{
|
@@ -110,10 +139,15 @@ Enum_initialize(VALUE self, VALUE sym, VALUE val)
|
|
110
139
|
}
|
111
140
|
|
112
141
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
142
|
+
/**
|
143
|
+
* Return the value of an enum.
|
144
|
+
*
|
145
|
+
* Ruby usage:
|
146
|
+
* - @verbatim Enum#to_i @endverbatim
|
147
|
+
*
|
148
|
+
* @param self this object
|
149
|
+
* @return this object's value
|
150
|
+
*/
|
117
151
|
VALUE
|
118
152
|
Enum_to_i(VALUE self)
|
119
153
|
{
|
@@ -124,12 +158,19 @@ Enum_to_i(VALUE self)
|
|
124
158
|
}
|
125
159
|
|
126
160
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
161
|
+
/**
|
162
|
+
* Support Comparable module in Enum.
|
163
|
+
*
|
164
|
+
* Ruby usage:
|
165
|
+
* - @verbatim Enum#<=> @endverbatim
|
166
|
+
*
|
167
|
+
* Notes:
|
168
|
+
* - Enums must be instances of the same class to be equal.
|
169
|
+
*
|
170
|
+
* @param self this object
|
171
|
+
* @param other the other object
|
172
|
+
* @return -1, 0, 1, or nil
|
173
|
+
*/
|
133
174
|
VALUE
|
134
175
|
Enum_spaceship(VALUE self, VALUE other)
|
135
176
|
{
|
@@ -153,10 +194,15 @@ Enum_spaceship(VALUE self, VALUE other)
|
|
153
194
|
}
|
154
195
|
|
155
196
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
197
|
+
/**
|
198
|
+
* Return the name of an enum.
|
199
|
+
*
|
200
|
+
* Ruby usage:
|
201
|
+
* - @verbatim Enum#to_s @endverbatim
|
202
|
+
*
|
203
|
+
* @param self this object
|
204
|
+
* @return the name
|
205
|
+
*/
|
160
206
|
VALUE
|
161
207
|
Enum_to_s(VALUE self)
|
162
208
|
{
|
@@ -167,10 +213,17 @@ Enum_to_s(VALUE self)
|
|
167
213
|
}
|
168
214
|
|
169
215
|
|
170
|
-
|
171
|
-
*
|
172
|
-
*
|
173
|
-
|
216
|
+
/**
|
217
|
+
* Initialize method for all Enum subclasses.
|
218
|
+
*
|
219
|
+
* Ruby usage:
|
220
|
+
* - @verbatim xxx#initialize(sym,val) @endverbatim
|
221
|
+
*
|
222
|
+
* @param self this object
|
223
|
+
* @param sym the symbol
|
224
|
+
* @param val the value of the symbol
|
225
|
+
* @return self
|
226
|
+
*/
|
174
227
|
VALUE
|
175
228
|
Enum_type_initialize(VALUE self, VALUE sym, VALUE val)
|
176
229
|
{
|
@@ -193,10 +246,15 @@ Enum_type_initialize(VALUE self, VALUE sym, VALUE val)
|
|
193
246
|
}
|
194
247
|
|
195
248
|
|
196
|
-
|
197
|
-
*
|
198
|
-
*
|
199
|
-
|
249
|
+
/**
|
250
|
+
* Enum subclass #inspect.
|
251
|
+
*
|
252
|
+
* Ruby usage:
|
253
|
+
* - @verbatim xxx#inspect @endverbatim
|
254
|
+
*
|
255
|
+
* @param self this object
|
256
|
+
* @return string representation of self
|
257
|
+
*/
|
200
258
|
static VALUE
|
201
259
|
Enum_type_inspect(VALUE self)
|
202
260
|
{
|
@@ -210,11 +268,19 @@ Enum_type_inspect(VALUE self)
|
|
210
268
|
}
|
211
269
|
|
212
270
|
|
213
|
-
|
214
|
-
*
|
215
|
-
*
|
216
|
-
*
|
217
|
-
|
271
|
+
/**
|
272
|
+
* Behaves like #each if a block is present, otherwise like #to_a.
|
273
|
+
*
|
274
|
+
* Ruby usage:
|
275
|
+
* - @verbatim xxx.values @endverbatim
|
276
|
+
* - @verbatim xxx.values {|v| } @endverbatim
|
277
|
+
*
|
278
|
+
* Notes:
|
279
|
+
* - Defined for each Enum subclass
|
280
|
+
*
|
281
|
+
* @param class the subclass
|
282
|
+
* @return iterator over values if given block, a copy of the values otherwise
|
283
|
+
*/
|
218
284
|
static VALUE
|
219
285
|
Enum_type_values(VALUE class)
|
220
286
|
{
|
@@ -247,10 +313,14 @@ Enum_type_values(VALUE class)
|
|
247
313
|
}
|
248
314
|
|
249
315
|
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
316
|
+
/**
|
317
|
+
* Construct a ClassType enum object for the specified value.
|
318
|
+
*
|
319
|
+
* No Ruby usage (internal function)
|
320
|
+
*
|
321
|
+
* @param cls the class type
|
322
|
+
* @return a new enumerator
|
323
|
+
*/
|
254
324
|
VALUE
|
255
325
|
ClassType_new(ClassType cls)
|
256
326
|
{
|
@@ -274,10 +344,14 @@ ClassType_new(ClassType cls)
|
|
274
344
|
}
|
275
345
|
|
276
346
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
347
|
+
/**
|
348
|
+
* Construct a ColorspaceType enum object for the specified value.
|
349
|
+
*
|
350
|
+
* No Ruby usage (internal function)
|
351
|
+
*
|
352
|
+
* @param cs the ColorspaceType
|
353
|
+
* @return a new ColorspaceType enumerator
|
354
|
+
*/
|
281
355
|
VALUE
|
282
356
|
ColorspaceType_new(ColorspaceType cs)
|
283
357
|
{
|
@@ -362,10 +436,14 @@ ColorspaceType_new(ColorspaceType cs)
|
|
362
436
|
}
|
363
437
|
|
364
438
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
439
|
+
/**
|
440
|
+
* Return the name of a CompositeOperator enum as a string.
|
441
|
+
*
|
442
|
+
* No Ruby usage (internal function)
|
443
|
+
*
|
444
|
+
* @param op the CompositeOperator
|
445
|
+
* @return the name
|
446
|
+
*/
|
369
447
|
static const char *
|
370
448
|
CompositeOperator_name(CompositeOperator op)
|
371
449
|
{
|
@@ -457,10 +535,14 @@ CompositeOperator_name(CompositeOperator op)
|
|
457
535
|
}
|
458
536
|
|
459
537
|
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
538
|
+
/**
|
539
|
+
* Construct a CompositeOperator enum object for the specified value.
|
540
|
+
*
|
541
|
+
* No Ruby usage (internal function)
|
542
|
+
*
|
543
|
+
* @param op the CompositeOperator
|
544
|
+
* @return a new CompositeOperator enumerator
|
545
|
+
*/
|
464
546
|
VALUE
|
465
547
|
CompositeOperator_new(CompositeOperator op)
|
466
548
|
{
|
@@ -469,10 +551,14 @@ CompositeOperator_new(CompositeOperator op)
|
|
469
551
|
}
|
470
552
|
|
471
553
|
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
554
|
+
/**
|
555
|
+
* Return the name of a CompressionType enum as a string.
|
556
|
+
*
|
557
|
+
* No Ruby usage (internal function)
|
558
|
+
*
|
559
|
+
* @param ct the CompressionType
|
560
|
+
* @return the name
|
561
|
+
*/
|
476
562
|
static const char *
|
477
563
|
CompressionType_name(CompressionType ct)
|
478
564
|
{
|
@@ -519,10 +605,14 @@ CompressionType_name(CompressionType ct)
|
|
519
605
|
}
|
520
606
|
|
521
607
|
|
522
|
-
|
523
|
-
*
|
524
|
-
|
525
|
-
|
608
|
+
/**
|
609
|
+
* Construct a CompressionType enum object for the specified value.
|
610
|
+
*
|
611
|
+
* No Ruby usage (internal function)
|
612
|
+
*
|
613
|
+
* @param ct the CompressionType
|
614
|
+
* @return a new CompressionType enumerator
|
615
|
+
*/
|
526
616
|
VALUE
|
527
617
|
CompressionType_new(CompressionType ct)
|
528
618
|
{
|
@@ -531,10 +621,14 @@ CompressionType_new(CompressionType ct)
|
|
531
621
|
}
|
532
622
|
|
533
623
|
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
624
|
+
/**
|
625
|
+
* Return the name of a DisposeType enum as a string.
|
626
|
+
*
|
627
|
+
* No Ruby usage (internal function)
|
628
|
+
*
|
629
|
+
* @param type the DisposeType
|
630
|
+
* @return the name
|
631
|
+
*/
|
538
632
|
static const char *
|
539
633
|
DisposeType_name(DisposeType type)
|
540
634
|
{
|
@@ -550,10 +644,14 @@ DisposeType_name(DisposeType type)
|
|
550
644
|
}
|
551
645
|
|
552
646
|
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
647
|
+
/**
|
648
|
+
* Construct a DisposeType enum object for the specified value..new.
|
649
|
+
*
|
650
|
+
* No Ruby usage (internal function)
|
651
|
+
*
|
652
|
+
* @param type the DisposeType
|
653
|
+
* @return a new DisposeType enumerator
|
654
|
+
*/
|
557
655
|
VALUE
|
558
656
|
DisposeType_new(DisposeType type)
|
559
657
|
{
|
@@ -562,10 +660,14 @@ DisposeType_new(DisposeType type)
|
|
562
660
|
}
|
563
661
|
|
564
662
|
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
663
|
+
/**
|
664
|
+
* Return the name of a FilterTypes enum as a string.
|
665
|
+
*
|
666
|
+
* No Ruby usage (internal function)
|
667
|
+
*
|
668
|
+
* @param type the FilterTypes
|
669
|
+
* @return the name
|
670
|
+
*/
|
569
671
|
static const char *
|
570
672
|
FilterTypes_name(FilterTypes type)
|
571
673
|
{
|
@@ -616,10 +718,14 @@ FilterTypes_name(FilterTypes type)
|
|
616
718
|
}
|
617
719
|
|
618
720
|
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
721
|
+
/**
|
722
|
+
* Construct an FilterTypes enum object for the specified value.
|
723
|
+
*
|
724
|
+
* No Ruby usage (internal function)
|
725
|
+
*
|
726
|
+
* @param type the FilterTypes
|
727
|
+
* @return a new FilterTypes enumerator
|
728
|
+
*/
|
623
729
|
VALUE
|
624
730
|
FilterTypes_new(FilterTypes type)
|
625
731
|
{
|
@@ -628,10 +734,14 @@ FilterTypes_new(FilterTypes type)
|
|
628
734
|
}
|
629
735
|
|
630
736
|
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
737
|
+
/**
|
738
|
+
* Return the name of a EndianType enum as a string.
|
739
|
+
*
|
740
|
+
* No Ruby usage (internal function)
|
741
|
+
*
|
742
|
+
* @param type the EndianType
|
743
|
+
* @return the name
|
744
|
+
*/
|
635
745
|
static const char *
|
636
746
|
EndianType_name(EndianType type)
|
637
747
|
{
|
@@ -645,10 +755,14 @@ EndianType_name(EndianType type)
|
|
645
755
|
}
|
646
756
|
|
647
757
|
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
758
|
+
/**
|
759
|
+
* Construct an EndianType enum object.
|
760
|
+
*
|
761
|
+
* No Ruby usage (internal function)
|
762
|
+
*
|
763
|
+
* @param type the EndianType
|
764
|
+
* @return a new EndianType enumerator
|
765
|
+
*/
|
652
766
|
VALUE
|
653
767
|
EndianType_new(EndianType type)
|
654
768
|
{
|
@@ -657,10 +771,14 @@ EndianType_new(EndianType type)
|
|
657
771
|
}
|
658
772
|
|
659
773
|
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
774
|
+
/**
|
775
|
+
* Return the name of a GravityType enum as a string.
|
776
|
+
*
|
777
|
+
* No Ruby usage (internal function)
|
778
|
+
*
|
779
|
+
* @param type the GravityType
|
780
|
+
* @return the name
|
781
|
+
*/
|
664
782
|
static const char *
|
665
783
|
GravityType_name(GravityType type)
|
666
784
|
{
|
@@ -684,10 +802,14 @@ GravityType_name(GravityType type)
|
|
684
802
|
}
|
685
803
|
|
686
804
|
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
805
|
+
/**
|
806
|
+
* Construct an GravityType enum object for the specified value.
|
807
|
+
*
|
808
|
+
* No Ruby usage (internal function)
|
809
|
+
*
|
810
|
+
* @param type the GravityType
|
811
|
+
* @return a new GravityType enumerator
|
812
|
+
*/
|
691
813
|
VALUE
|
692
814
|
GravityType_new(GravityType type)
|
693
815
|
{
|
@@ -696,10 +818,14 @@ GravityType_new(GravityType type)
|
|
696
818
|
}
|
697
819
|
|
698
820
|
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
821
|
+
/**
|
822
|
+
* Return the name of a ImageType enum as a string.
|
823
|
+
*
|
824
|
+
* No Ruby usage (internal function)
|
825
|
+
*
|
826
|
+
* @param type the ImageType
|
827
|
+
* @return the name
|
828
|
+
*/
|
703
829
|
static const char *
|
704
830
|
ImageType_name(ImageType type)
|
705
831
|
{
|
@@ -723,10 +849,14 @@ ImageType_name(ImageType type)
|
|
723
849
|
}
|
724
850
|
|
725
851
|
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
852
|
+
/**
|
853
|
+
* Construct an ImageType enum object for the specified value.
|
854
|
+
*
|
855
|
+
* No Ruby usage (internal function)
|
856
|
+
*
|
857
|
+
* @param type the ImageType
|
858
|
+
* @return a new ImageType enumerator
|
859
|
+
*/
|
730
860
|
VALUE
|
731
861
|
ImageType_new(ImageType type)
|
732
862
|
{
|
@@ -735,10 +865,14 @@ ImageType_new(ImageType type)
|
|
735
865
|
}
|
736
866
|
|
737
867
|
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
868
|
+
/**
|
869
|
+
* Return the name of a InterlaceType enum as a string.
|
870
|
+
*
|
871
|
+
* No Ruby usage (internal function)
|
872
|
+
*
|
873
|
+
* @param interlace the InterlaceType
|
874
|
+
* @return the name
|
875
|
+
*/
|
742
876
|
static const char *
|
743
877
|
InterlaceType_name(InterlaceType interlace)
|
744
878
|
{
|
@@ -758,10 +892,14 @@ InterlaceType_name(InterlaceType interlace)
|
|
758
892
|
}
|
759
893
|
|
760
894
|
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
895
|
+
/**
|
896
|
+
* Construct an InterlaceType enum object for the specified value.
|
897
|
+
*
|
898
|
+
* No Ruby usage (internal function)
|
899
|
+
*
|
900
|
+
* @param interlace the InterlaceType
|
901
|
+
* @return a new InterlaceType enumerator
|
902
|
+
*/
|
765
903
|
VALUE
|
766
904
|
InterlaceType_new(InterlaceType interlace)
|
767
905
|
{
|
@@ -770,10 +908,14 @@ InterlaceType_new(InterlaceType interlace)
|
|
770
908
|
}
|
771
909
|
|
772
910
|
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
911
|
+
/**
|
912
|
+
* Return the name of a InterpolatePixelMethod enum as a string.
|
913
|
+
*
|
914
|
+
* No Ruby usage (internal function)
|
915
|
+
*
|
916
|
+
* @param interpolate the InterpolatePixelMethod
|
917
|
+
* @return the name
|
918
|
+
*/
|
777
919
|
static const char *
|
778
920
|
InterpolatePixelMethod_name(InterpolatePixelMethod interpolate)
|
779
921
|
{
|
@@ -794,10 +936,14 @@ InterpolatePixelMethod_name(InterpolatePixelMethod interpolate)
|
|
794
936
|
}
|
795
937
|
|
796
938
|
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
939
|
+
/**
|
940
|
+
* Construct an InterpolatePixelMethod enum object for the specified value.
|
941
|
+
*
|
942
|
+
* No Ruby usage (internal function)
|
943
|
+
*
|
944
|
+
* @param interpolate the InterpolatePixelMethod
|
945
|
+
* @return a new InterpolatePixelMethod enumerator
|
946
|
+
*/
|
801
947
|
VALUE
|
802
948
|
InterpolatePixelMethod_new(InterpolatePixelMethod interpolate)
|
803
949
|
{
|
@@ -806,10 +952,14 @@ InterpolatePixelMethod_new(InterpolatePixelMethod interpolate)
|
|
806
952
|
}
|
807
953
|
|
808
954
|
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
955
|
+
/**
|
956
|
+
* Return the name of a MagickLayerMethod enum as a string.
|
957
|
+
*
|
958
|
+
* No Ruby usage (internal function)
|
959
|
+
*
|
960
|
+
* @param method the MagickLayerMethod
|
961
|
+
* @return the name
|
962
|
+
*/
|
813
963
|
static const char *
|
814
964
|
LAYERMETHODTYPE_NAME(LAYERMETHODTYPE method)
|
815
965
|
{
|
@@ -846,6 +996,14 @@ LAYERMETHODTYPE_NAME(LAYERMETHODTYPE method)
|
|
846
996
|
}
|
847
997
|
|
848
998
|
|
999
|
+
/**
|
1000
|
+
* Construct an MagickLayerMethod enum object for the specified value.
|
1001
|
+
*
|
1002
|
+
* No Ruby usage (internal function)
|
1003
|
+
*
|
1004
|
+
* @param method the MagickLayerMethod
|
1005
|
+
* @return a new MagickLayerMethod enumerator
|
1006
|
+
*/
|
849
1007
|
VALUE
|
850
1008
|
LAYERMETHODTYPE_NEW(LAYERMETHODTYPE method)
|
851
1009
|
{
|
@@ -854,10 +1012,14 @@ LAYERMETHODTYPE_NEW(LAYERMETHODTYPE method)
|
|
854
1012
|
}
|
855
1013
|
|
856
1014
|
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
1015
|
+
/**
|
1016
|
+
* Return the name of a OrientationType enum as a string.
|
1017
|
+
*
|
1018
|
+
* No Ruby usage (internal function)
|
1019
|
+
*
|
1020
|
+
* @param type the OreintationType
|
1021
|
+
* @return the name
|
1022
|
+
*/
|
861
1023
|
static const char *
|
862
1024
|
OrientationType_name(OrientationType type)
|
863
1025
|
{
|
@@ -878,10 +1040,14 @@ OrientationType_name(OrientationType type)
|
|
878
1040
|
}
|
879
1041
|
|
880
1042
|
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
1043
|
+
/**
|
1044
|
+
* Construct an OrientationType enum object for the specified value.
|
1045
|
+
*
|
1046
|
+
* No Ruby usage (internal function)
|
1047
|
+
*
|
1048
|
+
* @param type the OrientationType
|
1049
|
+
* @return a new OrientationType enumerator
|
1050
|
+
*/
|
885
1051
|
VALUE
|
886
1052
|
OrientationType_new(OrientationType type)
|
887
1053
|
{
|
@@ -890,10 +1056,14 @@ OrientationType_new(OrientationType type)
|
|
890
1056
|
}
|
891
1057
|
|
892
1058
|
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
1059
|
+
/**
|
1060
|
+
* Return the name of a RenderingIntent enum as a string.
|
1061
|
+
*
|
1062
|
+
* No Ruby usage (internal function)
|
1063
|
+
*
|
1064
|
+
* @param intent the RenderingIntent
|
1065
|
+
* @return the name
|
1066
|
+
*/
|
897
1067
|
static const char *
|
898
1068
|
RenderingIntent_name(RenderingIntent intent)
|
899
1069
|
{
|
@@ -910,10 +1080,14 @@ RenderingIntent_name(RenderingIntent intent)
|
|
910
1080
|
}
|
911
1081
|
|
912
1082
|
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
1083
|
+
/**
|
1084
|
+
* Construct an RenderingIntent enum object for the specified value.
|
1085
|
+
*
|
1086
|
+
* No Ruby usage (internal function)
|
1087
|
+
*
|
1088
|
+
* @param intent the RenderingIntent
|
1089
|
+
* @return a new RenderingIntent enumerator
|
1090
|
+
*/
|
917
1091
|
VALUE
|
918
1092
|
RenderingIntent_new(RenderingIntent intent)
|
919
1093
|
{
|
@@ -922,10 +1096,14 @@ RenderingIntent_new(RenderingIntent intent)
|
|
922
1096
|
}
|
923
1097
|
|
924
1098
|
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
1099
|
+
/**
|
1100
|
+
* Return the name of a ResolutionType enum as a string.
|
1101
|
+
*
|
1102
|
+
* No Ruby usage (internal function)
|
1103
|
+
*
|
1104
|
+
* @param type the ResolutionType
|
1105
|
+
* @return the name
|
1106
|
+
*/
|
929
1107
|
static const char *
|
930
1108
|
ResolutionType_name(ResolutionType type)
|
931
1109
|
{
|
@@ -940,10 +1118,14 @@ ResolutionType_name(ResolutionType type)
|
|
940
1118
|
}
|
941
1119
|
|
942
1120
|
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
1121
|
+
/**
|
1122
|
+
* Construct an ResolutionType enum object for the specified value.
|
1123
|
+
*
|
1124
|
+
* No Ruby usage (internal function)
|
1125
|
+
*
|
1126
|
+
* @param type the ResolutionType
|
1127
|
+
* @return a new ResolutionType enumerator
|
1128
|
+
*/
|
947
1129
|
VALUE
|
948
1130
|
ResolutionType_new(ResolutionType type)
|
949
1131
|
{
|
@@ -952,10 +1134,14 @@ ResolutionType_new(ResolutionType type)
|
|
952
1134
|
}
|
953
1135
|
|
954
1136
|
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
1137
|
+
/**
|
1138
|
+
* Return the string representation of a StorageType value.
|
1139
|
+
*
|
1140
|
+
* No Ruby usage (internal function)
|
1141
|
+
*
|
1142
|
+
* @param type the StorageType
|
1143
|
+
* @return the name
|
1144
|
+
*/
|
959
1145
|
const char *
|
960
1146
|
StorageType_name(StorageType type)
|
961
1147
|
{
|
@@ -975,10 +1161,14 @@ StorageType_name(StorageType type)
|
|
975
1161
|
}
|
976
1162
|
|
977
1163
|
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
1164
|
+
/**
|
1165
|
+
* Return the string representation of a VirtualPixelMethod value.
|
1166
|
+
*
|
1167
|
+
* No Ruby usage (internal function)
|
1168
|
+
*
|
1169
|
+
* @param method the VirtualPixelMethod
|
1170
|
+
* @return the name
|
1171
|
+
*/
|
982
1172
|
static const char *
|
983
1173
|
VirtualPixelMethod_name(VirtualPixelMethod method)
|
984
1174
|
{
|
@@ -1018,10 +1208,14 @@ VirtualPixelMethod_name(VirtualPixelMethod method)
|
|
1018
1208
|
}
|
1019
1209
|
|
1020
1210
|
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1211
|
+
/**
|
1212
|
+
* Construct a VirtualPixelMethod enum for a specified VirtualPixelMethod value.
|
1213
|
+
*
|
1214
|
+
* No Ruby usage (internal function)
|
1215
|
+
*
|
1216
|
+
* @param style theVirtualPixelMethod
|
1217
|
+
* @return a new VirtualPixelMethod enumerator
|
1218
|
+
*/
|
1025
1219
|
VALUE
|
1026
1220
|
VirtualPixelMethod_new(VirtualPixelMethod style)
|
1027
1221
|
{
|