星空外围足球网(

logo VectorDraw Developer Framework使用教程
文档星空外围足球网(>>VectorDraw Developer Framework使用教程>>VectorDraw Developer Framework使用教程:以指定尺寸绘制CCS轴

VectorDraw Developer Framework使用教程:以指定尺寸绘制CCS轴


从v6.023开始,VectorDraw Developer Framework 新增DrawCCSAxis函数,这个函数包含以像素为单位的轴宽高。它主要用于处理文档的OnDrawOverAll事件,用于绘制坐标轴,并且可以以指定的尺寸绘制CCS轴

下面是相关的参数介绍:

param name="render": The ActiveActionRender of the Document.
param name="DrawXAxis": A boolean value representing if the x axis will be drawn.
param name="DrawYaxis": A boolean value representing if the y axis will be drawn.
param name="DrawZaxis": A boolean value representing if the z axis will be drawn.
param name="DrawStrings": A boolean value representing if the strings will be drawn.
param name="XAxisColor": A System.Color indicating the color of the x axis.
param name="YAxisColor": A System.Color indicating the color of the y axis.
param name="ZAxisColor": A System.Color indicating the color of the z axis.
param name="showUserCS": A boolean value representing if the axis will be drawn relative to User Coordinate System or WorldCS.
param name="showOnOrigin": A boolean value representing if the axis will be drawn on the origin of selected Coordinate System on on the LowerLeft conrer of the screen.
param name="axiswidth": The width of the axis in pixels. The default VectorDraw axis is 5.0 pizels.
param name="axislength": The length of the axis in pixels. The default VectorDraw axis is 40.0 pizels.
public void DrawCCSAxis(vdRender render, bool DrawXAxis, bool DrawYaxis, bool DrawZaxis, bool DrawStrings, Color XAxisColor, Color YAxisColor, Color ZAxisColor, bool showUserCS, bool showOnOrigin, double axiswidth , double axislength)

覆盖DrawOverall事件的方法:

void BaseControl_DrawOverAll(object sender, vdRender render, ref bool cancel)
{
vdDocument document = sender as vdDocument;
document.ActiveLayOut.DrawCCSAxis(render, true, true, true, true, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Blue, true, true,10.0,80.0);
cancel = true;
}

* VectorDraw Developer Framework下载

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP
188BET体育网(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 永利网上滚球(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 博鱼信誉足球大全(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 盛凯国际网上盘口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 半岛真人十大入口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 腾曜集团最大足球网址(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 网络知名boyu·博鱼盘口(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新) 朗驰娱乐网上(官方)网站/网页版登录入口/手机版登录入口-最新版(已更新)