Package: libpngwriter0c2 Version: 0.5.3-3 Severity: normal The filleddiamond() method seems to miss the top-most pixel sometimes. For example the diamond.cc program below writes /tmp/foo.png containing
" ", " . ", " . . ... ", " . . ..... ", " . . ....... ", " . . ......... ", " . . ....... ", " . . ..... ", " . . ... ", " . . ", " " where I expected the filleddiamond() on the right to have the same top pixel as the unfilled on the left. The "convert" in the diamond.cc is from imagemagick, just a handy way to see the .png in text. The png does have the pixels this way, as can be seen in a viewer with a zoom.
#include <pngwriter.h> int main (void) { pngwriter foo(40,11, 0, "/tmp/foo.png"); foo.diamond (10,6, 8,8, 1.0,1.0,1.0); foo.filleddiamond (30,6, 8,8, 1.0,1.0,1.0); foo.write_png(); system("convert /tmp/foo.png /tmp/foo.xpm; cat /tmp/foo.xpm"); return 0; }
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-486 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages libpngwriter0c2 depends on: ii libc6 2.11.1-3 Embedded GNU C Library: Shared lib ii libgcc1 1:4.6.0-6 GCC support library ii libstdc++6 4.6.0-6 The GNU Standard C++ Library v3 libpngwriter0c2 recommends no packages. libpngwriter0c2 suggests no packages. -- no debconf information