iGoo
2nd June 2006, 02:20
Hi,folks:
I QT4,We can use QLabel::setPixmap to render an image.
Can I use windows raw api bitblt to draw the image?How?
what's the difference(in efficiency),then
typeproto:
BOOL BitBlt(
HDC hdcDest, // handle to destination DC
int nXDest, // x-coord of destination upper-left corner
int nYDest, // y-coord of destination upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXSrc, // x-coordinate of source upper-left corner
int nYSrc, // y-coordinate of source upper-left corner
DWORD dwRop // raster operation code
);
I think the KEY is how get the coordinate "hdcDest"
Any advice will be appreciated.
Thanks in advance.
I QT4,We can use QLabel::setPixmap to render an image.
Can I use windows raw api bitblt to draw the image?How?
what's the difference(in efficiency),then
typeproto:
BOOL BitBlt(
HDC hdcDest, // handle to destination DC
int nXDest, // x-coord of destination upper-left corner
int nYDest, // y-coord of destination upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXSrc, // x-coordinate of source upper-left corner
int nYSrc, // y-coordinate of source upper-left corner
DWORD dwRop // raster operation code
);
I think the KEY is how get the coordinate "hdcDest"
Any advice will be appreciated.
Thanks in advance.