|
´Hum, made some weird code to check the bottom-up condition. Cache pixel
values of pixels at 0@0 and 0@(height-1).
Write defined value1 to 0@0 and defined (different!) value 2 to
0@(height-1), all with my own fast pixel access routines.
Then read pixel at 0@0 with canvas pixelAt: method. If the value is the one
written with fast method to 0@0 it's top-down, otherwise bottom-up. Finally
restore cached values.
Awkward, but works. If anybody has time to check if the same
BITMAPINFOHEADER bug on reread of the DIBsSection with GDIs getObject() is
showing up in C++, too, I would be interested in the outcome!
Ciao
...Jochen
|