www.mxdraw.com
|
把一个实体显示保存到一个jpg文件。
static BOOL Mx_DrawEntityToJpg(IN LONG lId, IN CString sJpgFilePath, IN int iWidth = -1, IN int iHeight = -1, IN COLORREF* pBkColor = NULL);
参数 |
说明 |
IN LONG lId |
该实体对象的id |
IN CString sJpgFilePath |
保存的jpg文件路径 |
IN int iWidth = -1 |
jpg文件的像素宽度,-1默认为1000 |
IN int iHeight = -1 |
jpg文件的像素高度,-1默认为1000 |
IN COLORREF* pBkColor = NULL |
绘制的背景颜色,为空取当前背景颜色. |
成功返TRUE
例如: VB代码.
ElseIf iCommandId = 77 Then Set mxUtility = New MxDrawXLib.MxDrawUtility Set ent = mxUtility.GetEntity(getPt3, Chr(13) + Chr(10) + "选择读取扩展数据的实体:") If (ent Is Nothing) Then MsgBox "没有选择实体.." Exit Sub End If Set param = New MxDrawXLib.MxDrawResbuf param.AddLong ent.ObjectID, -10 param.AddString "c:ff3.jpg" MxDrawX1.CallEx "Mx_DrawEntityToJpg", param ElseIf iCommandId = 66 Then