IPicture中Render()函数的使用方法

  1. IPicture中Render()函数的使用方法 
  2. 这个函数的那几个参数的中文意思到底是什么?MSDN中是这样描述的 
  3. HRESULT Render( 
  4. HDC hdc, //Handle of device context on which to render the image 
  5. long x, //Horizontal position of image in hdc 
  6. long y, //Vertical position of image in hdc 
  7. long cx, //Horizontal dimension of destination rectangle 
  8. long cy, //Vertical dimension of destination rectangle 
  9. OLE_XPOS_HIMETRIC xSrc, //Horizontal offset in source picture 
  10. OLE_YPOS_HIMETRIC ySrc, //Vertical offset in source picture 
  11. OLE_XSIZE_HIMETRIC cxSrc, //Amount to copy horizontally in source picture 
  12. OLE_YSIZE_HIMETRIC cySrc, //Amount to copy vertically in source picture 
  13. LPCRECT prcWBounds //Pointer to position of destination for a metafile hdc 
  14. ); 
  15. 这个功能显示一张大图画中的一部分
  16. hdc:不用说了吧 
  17. x,y是hdc上的横纵坐标起点,cx,cy是终点,也就是说,画在hdc上的是一个矩形,xy是左上角坐标,cxcy是右下角坐标。 
  18. xsrc,ysrc,cxsrc,cysrc也是矩形的左上和右下角坐标,是说明这张大图中要显示到hdc上的部分。 
  19. 从src这个图中取出xsrc,ysrc,cxsrc,cysrc这部分,贴在x,y,cx,cy这块区域上面

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值