gdiplus: negative stride from dipCreateBitmapFromFile
cbill.lam at gmail.com
Fri Feb 22 03:48:41 CST 2008
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
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?
More information about the wine-devel