File: __init__.py

package info (click to toggle)
python-pgmagick 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 712 kB
  • sloc: cpp: 3,481; python: 1,618; makefile: 147
file content (356 lines) | stat: -rw-r--r-- 7,437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
from pgmagick import _pgmagick
__version__ = '0.5.1'


def __init():
    _pgmagick.InitializeMagick("./")
__init()


class Blob(_pgmagick.Blob):

    def __init__(self, *args):
        if len(args) == 1 and isinstance(args[0], str):
            _pgmagick.Blob.__init__(self)
            self.update(args[0])
        else:
            _pgmagick.Blob.__init__(self, *args)

    data = property(_pgmagick.get_blob_data, _pgmagick.Blob.update)

ChannelType = _pgmagick.ChannelType

class Color(_pgmagick.Color):
    pass

class ColorGray(_pgmagick.ColorGray):
    pass

class ColorHSL(_pgmagick.ColorHSL):
    pass

class ColorMono(_pgmagick.ColorMono):
    pass

class ColorRGB(_pgmagick.ColorRGB):
    pass

class ColorYUV(_pgmagick.ColorYUV):
    pass

ColorspaceType = _pgmagick.ColorspaceType

CompositeOperator = _pgmagick.CompositeOperator

CompressionType = _pgmagick.CompressionType

class Coordinate(_pgmagick.Coordinate):
    pass

class CoordinateList(_pgmagick.CoordinateList):
    pass

DecorationType = _pgmagick.DecorationType

class Drawable(_pgmagick.Drawable):
    pass

class DrawableAffine(_pgmagick.DrawableAffine):
    pass

class DrawableArc(_pgmagick.DrawableArc):
    pass

class DrawableBezier(_pgmagick.DrawableBezier):
    pass

class DrawableCircle(_pgmagick.DrawableCircle):
    pass

class DrawableClipPath(_pgmagick.DrawableClipPath):
    pass

class DrawableColor(_pgmagick.DrawableColor):
    pass

class DrawableCompositeImage(_pgmagick.DrawableCompositeImage):
    pass

class DrawableDashArray(_pgmagick.DrawableDashArray):
    pass

class DrawableDashOffset(_pgmagick.DrawableDashOffset):
    pass

class DrawableEllipse(_pgmagick.DrawableEllipse):
    pass

class DrawableFillColor(_pgmagick.DrawableFillColor):
    pass

class DrawableFillOpacity(_pgmagick.DrawableFillOpacity):
    pass

class DrawableFillRule(_pgmagick.DrawableFillRule):
    pass

class DrawableFont(_pgmagick.DrawableFont):
    pass

class DrawableGravity(_pgmagick.DrawableGravity):
    pass

class DrawableLine(_pgmagick.DrawableLine):
    pass

class DrawableList(_pgmagick.DrawableList):
    pass

class DrawableMatte(_pgmagick.DrawableMatte):
    pass

class DrawableMiterLimit(_pgmagick.DrawableMiterLimit):
    pass

class DrawablePath(_pgmagick.DrawablePath):
    pass

class DrawablePoint(_pgmagick.DrawablePoint):
    pass

class DrawablePointSize(_pgmagick.DrawablePointSize):
    pass

class DrawablePolygon(_pgmagick.DrawablePolygon):
    pass

class DrawablePolyline(_pgmagick.DrawablePolyline):
    pass

class DrawablePopClipPath(_pgmagick.DrawablePopClipPath):
    pass

class DrawablePopGraphicContext(_pgmagick.DrawablePopGraphicContext):
    pass

class DrawablePopPattern(_pgmagick.DrawablePopPattern):
    pass

class DrawablePushClipPath(_pgmagick.DrawablePushClipPath):
    pass

class DrawablePushGraphicContext(_pgmagick.DrawablePushGraphicContext):
    pass

class DrawablePushPattern(_pgmagick.DrawablePushPattern):
    pass

class DrawableRectangle(_pgmagick.DrawableRectangle):
    pass

class DrawableRotation(_pgmagick.DrawableRotation):
    pass

class DrawableRoundRectangle(_pgmagick.DrawableRoundRectangle):
    pass

class DrawableScaling(_pgmagick.DrawableScaling):
    pass

class DrawableSkewX(_pgmagick.DrawableSkewX):
    pass

class DrawableSkewY(_pgmagick.DrawableSkewY):
    pass

class DrawableStrokeAntialias(_pgmagick.DrawableStrokeAntialias):
    pass

class DrawableStrokeColor(_pgmagick.DrawableStrokeColor):
    pass

class DrawableStrokeLineCap(_pgmagick.DrawableStrokeLineCap):
    pass

class DrawableStrokeLineJoin(_pgmagick.DrawableStrokeLineJoin):
    pass

class DrawableStrokeOpacity(_pgmagick.DrawableStrokeOpacity):
    pass

class DrawableStrokeWidth(_pgmagick.DrawableStrokeWidth):
    pass

class DrawableText(_pgmagick.DrawableText):
    pass

class DrawableTextAntialias(_pgmagick.DrawableTextAntialias):
    pass

class DrawableTextDecoration(_pgmagick.DrawableTextDecoration):
    pass

class DrawableTextUnderColor(_pgmagick.DrawableTextUnderColor):
    pass

class DrawableTranslation(_pgmagick.DrawableTranslation):
    pass

class DrawableViewbox(_pgmagick.DrawableViewbox):
    pass

EndianType = _pgmagick.EndianType

class Exception(_pgmagick.Exception):
    pass

FillRule = _pgmagick.FillRule

FilterTypes = _pgmagick.FilterTypes

class Geometry(_pgmagick.Geometry):
    pass

GravityType = _pgmagick.GravityType

class Image(_pgmagick.Image):
    pass

class ImageList(_pgmagick.ImageList):
    pass

ImageType = _pgmagick.ImageType

InterlaceType = _pgmagick.InterlaceType

LineCap = _pgmagick.LineCap

LineJoin = _pgmagick.LineJoin

class Montage(_pgmagick.Montage):
    pass

class MontageFramed(_pgmagick.MontageFramed):
    pass

NoiseType = _pgmagick.NoiseType

if hasattr(_pgmagick, "OrientationType"):
    OrientationType = _pgmagick.OrientationType

PaintMethod = _pgmagick.PaintMethod

class PathArcAbs(_pgmagick.PathArcAbs):
    pass

class PathArcArgs(_pgmagick.PathArcArgs):
    pass

class PathArcArgsList(_pgmagick.PathArcArgsList):
    pass

class PathArcRel(_pgmagick.PathArcRel):
    pass

class PathClosePath(_pgmagick.PathClosePath):
    pass

class PathCurveToArgsList(_pgmagick.PathCurveToArgsList):
    pass

class PathCurvetoAbs(_pgmagick.PathCurvetoAbs):
    pass

class PathCurvetoArgs(_pgmagick.PathCurvetoArgs):
    pass

class PathCurvetoRel(_pgmagick.PathCurvetoRel):
    pass

class PathLinetoAbs(_pgmagick.PathLinetoAbs):
    pass

class PathLinetoHorizontalAbs(_pgmagick.PathLinetoHorizontalAbs):
    pass

class PathLinetoHorizontalRel(_pgmagick.PathLinetoHorizontalRel):
    pass

class PathLinetoRel(_pgmagick.PathLinetoRel):
    pass

class PathLinetoVerticalAbs(_pgmagick.PathLinetoVerticalAbs):
    pass

class PathLinetoVerticalRel(_pgmagick.PathLinetoVerticalRel):
    pass

class PathMovetoAbs(_pgmagick.PathMovetoAbs):
    pass

class PathMovetoRel(_pgmagick.PathMovetoRel):
    pass

class PathQuadraticCurvetoAbs(_pgmagick.PathQuadraticCurvetoAbs):
    pass

class PathQuadraticCurvetoArgs(_pgmagick.PathQuadraticCurvetoArgs):
    pass

class PathQuadraticCurvetoArgsList(_pgmagick.PathQuadraticCurvetoArgsList):
    pass

class PathQuadraticCurvetoRel(_pgmagick.PathQuadraticCurvetoRel):
    pass

class PathSmoothCurvetoAbs(_pgmagick.PathSmoothCurvetoAbs):
    pass

class PathSmoothCurvetoRel(_pgmagick.PathSmoothCurvetoRel):
    pass

class PathSmoothQuadraticCurvetoAbs(_pgmagick.PathSmoothQuadraticCurvetoAbs):
    pass

class PathSmoothQuadraticCurvetoRel(_pgmagick.PathSmoothQuadraticCurvetoRel):
    pass

class Pixels(_pgmagick.Pixels):
    pass

if hasattr(_pgmagick, "SparseColorMethod"):
    SparseColorMethod = _pgmagick.SparseColorMethod

if hasattr(_pgmagick, "DistortImageMethod"):
    DistortImageMethod = _pgmagick.DistortImageMethod

if hasattr(_pgmagick, "QuantumOperator"):
    QuantumOperator = _pgmagick.QuantumOperator

QuantumType = _pgmagick.QuantumType

RenderingIntent = _pgmagick.RenderingIntent

ResolutionType = _pgmagick.ResolutionType

StorageType = _pgmagick.StorageType

StretchType = _pgmagick.StretchType

StyleType = _pgmagick.StyleType

class TypeMetric(_pgmagick.TypeMetric):
    pass

if hasattr(_pgmagick, "VirtualPixelMethod"):
    VirtualPixelMethod = _pgmagick.VirtualPixelMethod

class VPath(_pgmagick.VPath):
    pass

class VPathList(_pgmagick.VPathList):
    pass

class gminfo:
    version = _pgmagick.get_version()
    library = _pgmagick.get_library()