This is because memcpy copies the data using pointers to 32-bit data (i.e. 4 bytes a time).
This is true for X11, because the QImage is on the client side (in your code), and the QPixmap is on the X server side (in a separate process). It should take less under Windows.The QImage -> QPixmap conversion takes about as long as the data copying.





Reply With Quote
Bookmarks