in CefRenderHandler->OnPaint, how can I save the buffer to a bitmap? on windows, use the Bitmap.Bitmap(INT, INT, INT, PixelFormat, BYTE*) constructor, always get the wrong bitmap.
then i fount in the OnPaint api description "On Windows |buffer| will be |width|*|height|*4 bytes in size and represents a BGRA image with an upper-left origin", but in the Bitmap constructor the PixelFormat param just get PixelFormat32bppARGB,PixelFormat32bppPARGB for choose. so i use the htonl function to exchange the byte order, I get another bitmap but still not the right one.
Is there anyone get the bitmap directly from the render buffer successfully?how?
thanks.