mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-10-25 21:21:01 +03:00
Python Imaging Library (Fork)
The (previously refactored) polygon_generic function didn't draw
consistent polygons (equilateral polygons were not equilateral nor
symmetrical).
The most notable changes are:
* The horizontal edges are searched for when finding the polygon
boundaries, drawn and discarded from the edge list used to detect
intersections.
* The intersections are now checked and calculated from the current value
of the scan line (ymin) instead of in the middle (ymin + 0.5).
* Because the change in the scan line behavior, we should duplicate
the intersections in the maximum Y value of an edge or there will be
draw errors with concave and complex polygons.
* The rounds of the X coordinates in the hline function calls are
switched to draw the inner pixels.
* Removed the ugly micro-optimization of qsort at the end.
This implementation of the scan line algorithm may not be technically
correct, it's not optimized and it have problems with some edge cases,
like a wide line from (x0, y) to (x1, y + 1), therefore it should be
reviewed in the future.
|
||
|---|---|---|
| depends | ||
| docs | ||
| Images | ||
| libImaging | ||
| PIL | ||
| Sane | ||
| Scripts | ||
| Tests | ||
| Tk | ||
| _imaging.c | ||
| _imagingcms.c | ||
| _imagingft.c | ||
| _imagingmath.c | ||
| _imagingtk.c | ||
| _webp.c | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| CHANGES.rst | ||
| decode.c | ||
| display.c | ||
| encode.c | ||
| Makefile | ||
| MANIFEST.in | ||
| map.c | ||
| outline.c | ||
| path.c | ||
| py3.h | ||
| README.rst | ||
| selftest.py | ||
| setup.py | ||
| tox.ini | ||
Pillow
======
*Python Imaging Library (Fork)*
Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
.. image:: https://travis-ci.org/python-imaging/Pillow.png
:target: https://travis-ci.org/python-imaging/Pillow
.. image:: https://pypip.in/v/Pillow/badge.png
:target: https://pypi.python.org/pypi/Pillow/
:alt: Latest PyPI version
.. image:: https://pypip.in/d/Pillow/badge.png
:target: https://pypi.python.org/pypi/Pillow/
:alt: Number of PyPI downloads
The documentation is hosted at http://pillow.readthedocs.org/. It contains installation instructions, tutorials, reference, compatibility details, and more.