公共无效校准(
LeadLengthDsourceLength,
AnnUnitsourceUnit,
LeadLengthDdestinationLength,
AnnUnitdestinationUnit
)
公共子校准(_
按值传递sourceLength作为LeadLengthD,_
按值传递sourceUnit作为AnnUnit,_
按值传递destinationLength作为LeadLengthD,_
按值传递destinationUnit作为AnnUnit_
)
- (无效)calibrateSourceLength:(双)srcLen
srcUnit sourceUnit:(LTAnnUnit)
destinationLength:(双)targetLen
targetUnit destinationUnit:(LTAnnUnit);
公共无效校准(
LeadLengthDsourceLength,
AnnUnitsourceUnit,
LeadLengthDdestinationLength,
AnnUnitdestinationUnit
)
公共:
无效校准(
LeadLengthD^sourceLength,
AnnUnit^sourceUnit,
LeadLengthD^destinationLength,
AnnUnit^destinationUnit
)
sourceLength
已知源长度值
sourceUnit
单位的sourceLength
destinationLength
目的地的长度必须是什么
destinationUnit
单位的destinationUnit
这个方法将使用参数来计算一个新值CalibrationScale。这个值是使用之后的所有现有的统治者和新的统治者在这个容器中创建的对象。
的价值destinationUnit被设置成CalibrationUnit和将被用作默认单位新统治者在这个容器中创建的对象后,这种方法被称为。
校准尺子意味着分配一个特定的长度。例如,数字x光的手,你会画一个注释对象以及统治者的一个手指。你知道这个距离应该是6.5厘米。使用新的校准功能你可以调整这个统治者,所有现有的统治者,所有新创建的统治者,这样他们会精确测量距离为6.5厘米。这是通过第一次画一个统治者的容器,直到它完全匹配的手指的长度——忽略所示的值,然后使用校准如这个例子所示。
使用AnnPolyRulerObject.Calibrate设置一个统治者的个人校准值。
这个例子假设将尺子的长度是6.5厘米,然后使用校准设置映射器校准。
使用Leadtools.Annotations.Engine;
公共无效AnnContainerMapper_Calibrate ()
{
/ /添加一个尺子的长度1英寸的容器
AnnContainer容器=新AnnContainer ();
双英寸= 720;
AnnPolyRulerObject rulerObj =新AnnPolyRulerObject ();
rulerObj.Points.Add (LeadPointD。创建(1英寸,1英寸*));
rulerObj.Points.Add (LeadPointD。创建(2英寸,1英寸*));
rulerObj。中风= AnnStroke.Create (AnnSolidColorBrush.Create (“红色”),LeadLengthD.Create (1));
rulerObj。ShowGauge =真正的;
rulerObj。ShowTickMarks =真正的;
rulerObj。MeasurementUnit = AnnUnit.Inch;
container.Children.Add (rulerObj);
/ /显示统治者
Debug.WriteLine (“统治者校准,长度是1英寸);
/ /得到统治者的长度
LeadPointD point1 = rulerObj.Points [0];
LeadPointD卷帘窗= rulerObj.Points [1];
双长度= Math.Sqrt (Math.Pow (Math.Abs(卷帘窗。X - point1.X), 2) + Math.Pow (Math.Abs(卷帘窗。Y - point1.Y), 2));
/ /校准容器映射器
container.Mapper.Calibrate (
LeadLengthD.Create(长度),/ /源长度
AnnUnit.Unit,/ /源单元(容器的单位)
LeadLengthD.Create (6.5),/ /目的地长度
AnnUnit.Centimeter);/ /目标单位
/ /使用厘米作为计量单位的统治者
rulerObj。MeasurementUnit = AnnUnit.Centimeter;
/ /现在rulerObj应该显示6.5厘米,它的长度
Debug.WriteLine (“校准,长度是6.5厘米);
}
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。