EasyBMP icon indicating copy to clipboard operation
EasyBMP copied to clipboard

bugfix: Add support for negative heights

Open shareefj opened this issue 1 year ago • 1 comments

BMP files with a negative height imply that the origin is top left so we need to swap all rows.

shareefj avatar May 02 '23 08:05 shareefj

Hi, I saw that you had forked this library and improved it so I thought this might be a better place than Sourceforge for other bug fixes.

I've been trying to find a library that copes with negative heights but failed so here is an attempt at fixing it. I'm not sure if it's worth also handling negative widths too? I don't know how common a right hand origin would be.

shareefj avatar May 02 '23 08:05 shareefj