mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #2990 from radarhere/imagefilter
Rearrange ImageFilter classes into alphabetical order
This commit is contained in:
commit
d91f26486b
|
@ -33,9 +33,9 @@ image enhancement filters:
|
||||||
* **EDGE_ENHANCE_MORE**
|
* **EDGE_ENHANCE_MORE**
|
||||||
* **EMBOSS**
|
* **EMBOSS**
|
||||||
* **FIND_EDGES**
|
* **FIND_EDGES**
|
||||||
|
* **SHARPEN**
|
||||||
* **SMOOTH**
|
* **SMOOTH**
|
||||||
* **SMOOTH_MORE**
|
* **SMOOTH_MORE**
|
||||||
* **SHARPEN**
|
|
||||||
|
|
||||||
.. autoclass:: PIL.ImageFilter.GaussianBlur
|
.. autoclass:: PIL.ImageFilter.GaussianBlur
|
||||||
.. autoclass:: PIL.ImageFilter.BoxBlur
|
.. autoclass:: PIL.ImageFilter.BoxBlur
|
||||||
|
|
|
@ -270,6 +270,15 @@ class FIND_EDGES(BuiltinFilter):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class SHARPEN(BuiltinFilter):
|
||||||
|
name = "Sharpen"
|
||||||
|
filterargs = (3, 3), 16, 0, (
|
||||||
|
-2, -2, -2,
|
||||||
|
-2, 32, -2,
|
||||||
|
-2, -2, -2
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class SMOOTH(BuiltinFilter):
|
class SMOOTH(BuiltinFilter):
|
||||||
name = "Smooth"
|
name = "Smooth"
|
||||||
filterargs = (3, 3), 13, 0, (
|
filterargs = (3, 3), 13, 0, (
|
||||||
|
@ -288,12 +297,3 @@ class SMOOTH_MORE(BuiltinFilter):
|
||||||
1, 5, 5, 5, 1,
|
1, 5, 5, 5, 1,
|
||||||
1, 1, 1, 1, 1
|
1, 1, 1, 1, 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class SHARPEN(BuiltinFilter):
|
|
||||||
name = "Sharpen"
|
|
||||||
filterargs = (3, 3), 16, 0, (
|
|
||||||
-2, -2, -2,
|
|
||||||
-2, 32, -2,
|
|
||||||
-2, -2, -2
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user