Merge pull request #2990 from radarhere/imagefilter

Rearrange ImageFilter classes into alphabetical order
This commit is contained in:
Hugo 2018-02-27 11:38:24 +02:00 committed by GitHub
commit d91f26486b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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
)