A
Alex Feinman said:Modify the code to make the height in the BITMAPINFOHEADER negative:
bi.biXPelsPerMeter = 0xb12;
bi.biYPelsPerMeter = 0xb12;
bi.biHeight = - bi.biHeight; // If the height is negative, the bitmap
orientation will be reversed
byte[] hdr = GetBytes(bi);
Y. Sivaram said:Thanks Alex,
That's what exactly I wanted and now it works fine but a problem.
The image appears upside down! I tried reversing the byte array and it was
OK but slow.
Is this due to some setting in the CreateBitmap function or the camera sends
the data upside down?
Best Regards,
Y. Sivaram