James Hawkins wrote:
On Thu, Feb 28, 2008 at 10:07 PM, bill lam <cbill.lam(a)gmail.com> wrote:
I patched platimg to work with negative stride and now it works with wine built-in gdiplus.
FYI, native gdiplus gives a top-down bitmap but wine's gdiplus gives a bottom-up. It is not a bug in wine's but might causes compatibility problem.
How is it not a bug?
If the user beware this possibility and write a more secure code, GdipBitmapLockBits from wine's gdiplus will work. However this is another bug in wine gdiplus in that value return from GdipGetImageWidth ( and GdipGetImageHeight ?) will often be 1 pixel less than actual value, eg a jpeg of size 800x600 will be reported as 799x600. The larger the picture size, the more often it goes wrong. regards,