www.mxdraw.com
|
由闭合区域内部一个点,绘制一个填充对象。
static LONG Mx_DrawHatchFromPointEx(DOUBLE dX, DOUBLE dY, DOUBLE dPatternScale, long ladOpt);
参数 |
说明 |
DOUBLE dX |
点坐标X 点坐标Y |
DOUBLE dPatternScale |
填充图案缩放比例 |
long ladOpt |
对填充内部的孤岛的处理.0 =忽略孤岛, 1 = 处理孤岛, 2 = 嵌套处理孤岛 |
成功返回新绘制的填充对象id,失败返回0
例如: 选择一点填充,C#语言
MxDrawUtility mxUtility = new MxDrawUtility(); MxDrawPoint point = (MxDrawPoint)(mxUtility.GetPoint(null, "点一点:") ); if (point == null) { MessageBox.Show("用户取消.."); return; } MxDrawResbuf param = new MxDrawResbuf(); param.AddDouble(point.x); param.AddDouble(point.y); param.AddDouble(1.0); param.AddLong(0); axMxDrawX1.CallEx("Mx_DrawHatchFromPointEx", param);