windows CE 5.0 Imaging 组件,pImage->Draw()的参数设置问题[复制链接]
我在windows CE 5.0做图像显示的功能
用的是 Imaging组件;
使用pImage->Draw()的时候老是显示不出自己想要显示的部分。
问题出在的第三个参数上。
hdc
[in] An HDC value that is the graphics context that receives output from this method.
dstRect
[in] A pointer to a RECT value defining the portion of the display area within the graphics context that receives the output from this method.
srcRect
[in] An optional pointer to a RECT that specifies, in 0.01mm units, the portion of the image to be drawn in dstRect.
To display the entire image, set this value to NULL.
请教各位大虾,设置第三个参数为自己想显示的部分该如何设置啊?
fengwx :
我遇到过这样的情况啊!
但我现在要利用Imaging实现类似
BOOL BitBlt (
int x,
int y,
int nWidth,
int nHeight,
CDC* pSrcDC,
int xSrc,
int ySrc,
DWORD dwRop );
和
BOOL StretchBlt(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of destination upper-left corner
int nYOriginDest, // y-coord of destination upper-left corner
int nWidthDest, // width of destination rectangle
int nHeightDest, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of source upper-left corner
int nYOriginSrc, // y-coord of source upper-left corner
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
DWORD dwRop // raster operation code
);的功能啊!各位大虾,救救小弟啊!