📄 subject_56239.htm
字号:
<p>
序号:56239 发表者:Tonni 发表日期:2003-10-16 13:04:12
<br>主题:请大侠告知我以上列出出现在Render的参数单位是什么
<br>内容: OLE_XPOS_HIMETRIC xSrc,<BR> OLE_YPOS_HIMETRIC ySrc,<BR> OLE_XSIZE_HIMETRIC cxSrc,<BR> OLE_YSIZE_HIMETRIC cySrc,<BR><BR>请大侠告知我以上列出出现在Render的参数单位是什么.<BR>我用Render来显示图片,Debug看它们值很大,不可能是象素单位<BR><BR>IPicture::Render<BR><BR>Renders (draws) a specified portion of the picture defined by the offset (xSrc,ySrc) of the source picture and the dimensions to copy (cxSrc,xySrc). This picture is rendered onto the specified device context, positioned at the point (x,y), and scaled to the dimensions (cx,cy). The prcWBounds parameter specifies the position of this rendering if the destination device context is itself a metafile. Such information is necessary to place one metafile in another. For more information, see the prcWBounds parameter of IViewObject2::Draw.<BR><BR>HRESULT Render(<BR> HDC hdc, //Handle of device context on which to render the image<BR> long x, //Horizontal position of image in hdc<BR> long y, //Vertical position of image in hdc<BR> long cx, //Horizontal dimension of destination rectangle<BR> long cy, //Vertical dimension of destination rectangle<BR> OLE_XPOS_HIMETRIC xSrc,<BR> //Horizontal offset in source picture<BR> OLE_YPOS_HIMETRIC ySrc,<BR> //Vertical offset in source picture<BR> OLE_XSIZE_HIMETRIC cxSrc,<BR> //Amount to copy horizontally in source picture<BR> OLE_YSIZE_HIMETRIC cySrc,<BR> //Amount to copy vertically in source picture<BR> LPCRECT prcWBounds<BR> //Pointer to position of destination for a metafile hdc<BR>);<BR> <BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:关尔 回复日期:2003-10-16 21:27:32
<br>内容:0.01毫米?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Tonni 回复日期:2003-10-17 09:33:50
<br>内容:谢谢关尔回复!<BR><BR>我在画板里面建立一5*5cm的图片,<BR>Debug显示对应的宽度和高度是4233,<BR>如果按0.01mm来计算的话,该是5000<BR>可以这样认为吗?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:关尔 回复日期:2003-10-17 17:18:37
<br>内容:那我就不知道了<BR>我只是猜测<BR>根据OLE_XPOS_HIMETRIC中的HIMETRIC猜测的<BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -