Pillow/libImaging
Terseus be09da6507 Rewrite of the ImagingDrawWideLine function
The previous version of the function didn't generate correct wide lines
of even width.

The most notable changes are:
  * Make variable names far more descriptive about the process.
  * Corrected the width calculation; we should deduct one pixel from the
    width because the pixels at the center of the line doesn't count for
    the triangles.
  * Now we calculate *two* ratios, one for left/top displacement (dxmin)
    and one for right/bottom (dxmax), this fix the behavior with lines
    of even width.

It can probably be optimized.
2014-04-02 21:30:42 +02:00
..
Access.c reverted int32 changes 2013-12-30 21:00:32 -08:00
AlphaComposite.c add parentheses to avoid warnings 2013-03-27 23:19:04 +04:00
Antialias.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Bands.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Bit.h Forking PIL 2010-07-30 22:52:47 -04:00
BitDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Blend.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Chops.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Convert.c Now using the rgbT2rgba conversion for L+transparency to RGBA, dropping the palette hack 2013-11-26 13:04:10 -08:00
ConvertYCbCr.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Copy.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Crc32.c Forking PIL 2010-07-30 22:52:47 -04:00
Crop.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Dib.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Draw.c Rewrite of the ImagingDrawWideLine function 2014-04-02 21:30:42 +02:00
Effects.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
EpsEncode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Except.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
File.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Fill.c Fix compile error with msvc 2013-03-13 17:33:16 -07:00
Filter.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
FliDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
Geometry.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
GetBBox.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Gif.h Forking PIL 2010-07-30 22:52:47 -04:00
GifDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
GifEncode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
HexDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
Histo.c Switching to strncpy, fixing potential buffer overflow in palette as well 2013-03-14 20:46:23 -07:00
Imaging.h Added seek support to make writing jp2 files work. Also added support for directly using an fd rather than relying on the Python loop, if we have a real fd. 2014-03-14 11:21:08 +00:00
ImDib.h UNDEF more types before including windows headers 2012-03-09 00:00:04 +02:00
ImPlatform.h Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Incremental.c Fixed some problems with the reduce option, as well as a number of warnings from GCC. 2014-03-27 08:35:38 +00:00
Jpeg.h Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Jpeg2K.h Added precinct size option. Also added the jp2klib_version symbol on the _imaging module. 2014-03-14 15:40:30 +00:00
Jpeg2KDecode.c Fixed some problems with the reduce option, as well as a number of warnings from GCC. 2014-03-27 08:35:38 +00:00
Jpeg2KEncode.c Fixed a Python 3 specific crash. 2014-03-25 16:58:44 +00:00
JpegDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
JpegEncode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Lzw.h Forking PIL 2010-07-30 22:52:47 -04:00
LzwDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
Matrix.c Forking PIL 2010-07-30 22:52:47 -04:00
ModeFilter.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
MspDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
Negative.c Forking PIL 2010-07-30 22:52:47 -04:00
Offset.c Forking PIL 2010-07-30 22:52:47 -04:00
Pack.c MM and II 16 bit integer tiffs pack/write properly using libtiff on bigendian platform 2013-10-21 22:37:20 +00:00
PackDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
Palette.c Switching to strncpy, fixing potential buffer overflow in palette as well 2013-03-14 20:46:23 -07:00
Paste.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
PcdDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
PcxDecode.c Move image to first xsize*bands bytes, rather than including padding if stride > xsize*bands, fixes #523 2014-02-15 22:41:02 -08:00
PcxEncode.c Use even stride when saving odd sized .pcx files 2014-03-03 23:05:50 -08:00
Point.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Quant.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
QuantHash.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
QuantHash.h Make quantization code more portable 2013-04-08 00:52:15 +02:00
QuantHeap.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
QuantHeap.h Make quantization code more portable 2013-04-08 00:52:15 +02:00
QuantOctree.c fix FASTOCTREE quantizer for large images (>16MP) 2013-09-26 10:15:42 +02:00
QuantOctree.h Make quantization code more portable 2013-04-08 00:52:15 +02:00
QuantTypes.h BUG: add typedef uint64_t for msvc 2013-09-27 15:03:27 -07:00
RankFilter.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Raw.h Forking PIL 2010-07-30 22:52:47 -04:00
RawDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
RawEncode.c Forking PIL 2010-07-30 22:52:47 -04:00
Storage.c mixed 8ch tabs + spaces -> 4 space indent 2013-12-13 15:17:43 -08:00
SunRleDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
TgaRleDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
TiffDecode.c Removing unused, redundant compression variable. Actual compression setting is in the imagefiledirectory 2013-11-21 20:37:52 -08:00
TiffDecode.h Removing unused, redundant compression variable. Actual compression setting is in the imagefiledirectory 2013-11-21 20:37:52 -08:00
Unpack.c Comments 2013-11-20 17:03:46 -08:00
UnpackYCC.c Forking PIL 2010-07-30 22:52:47 -04:00
UnsharpMask.c Forking PIL 2010-07-30 22:52:47 -04:00
XbmDecode.c Forking PIL 2010-07-30 22:52:47 -04:00
XbmEncode.c Forking PIL 2010-07-30 22:52:47 -04:00
Zip.h Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
ZipDecode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
ZipEncode.c Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00