本帖最后由 x1212chf 于 2019-5-21 11:41 编辑
1.在ImageViewer中使用ImageViewerAddRegionInteractiveMode绘制矩形,可以通过BorderPen和 BorderBackPen 设置绘制矩形是边框颜色,但是绘制玩后,矩形边框
会变为默认的线段,请问在吗修改绘制后矩形边框样式,谢谢!
2.在ImageViewer使用AnnAutomation时,添加了一个AnnPolylineObject,获取该对象位置不准确,代码如下,是否使用不当,请指正:
获取AnnPolylineObject位置时,如下代码,有一个问题,当将影像缩小到没有滚动条时(有滚动条时获取的位置正确【随意移动、拖动滚动条等后】),获取的位置不正确,如何处理?bug???
LeadPointD p1 = (automation.Container.Children[0] as AnnPolylineObject).Points[0];
LeadPointD p2 = (automation.Container.Children[0] as AnnPolylineObject).Points[1];
p1 = automation.Container.Mapper.PointFromContainerCoordinates(p1, AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming | AnnFixedStateOperations.StrokeWidth);
p2 = automation.Container.Mapper.PointFromContainerCoordinates(p2, AnnFixedStateOperations.Scrolling | AnnFixedStateOperations.Zooming | AnnFixedStateOperations.StrokeWidth);
|