gdiplus: negative stride from dipCreateBitmapFromFile
22 Feb
2008
22 Feb
'08
9:48 a.m.
WHen I read a jpeg file of size about 600x400 pixels using gdiplus like this, GdipCreateBitmapFromFile fn BMP GdipGetImageWidth BMP w GdipGetImageHeight BMP h rt=. 0 0, w, h GdipBitmapLockBits BMP rt ImageLockModeRead PixelFormat32bppARGB DATA 'w h s f p r'=. DATA the member stride inside bitmapdata is negative, and its data buffer cannot be read successfully. when using native gdiplus that stride is positive, and it work ok. wine said itself cannot handle negitive stride yet so why itself create a bitmap wih negative stride in GdipCreateBitmapFromFile?
6508
Age (days ago)
6508
Last active (days ago)
0 comments
1 participants
participants (1)
-
bill lam