防止 Silverlight 缩放线宽

发布于 2024-09-08 23:13:29 字数 107 浏览 5 评论 0原文

使用 ScaleTransform 类时,Silverlight 还会缩放我显示的形状上的笔划粗细。但如果我不想要这种行为怎么办?是否可以禁用笔画的缩放,或者我是否必须迭代每个形状对象并设置倒数厚度?

When using the ScaleTransform class, Silverlight also scale the thickness of the strokes on the shapes that I display. But what if I don't want this behaviour? Is it possible to disable the scaling of strokes, or will I have to iterate over every shape object and set the reciprocal thickness?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晒暮凉 2024-09-15 23:13:29

ScaleTransform 是渲染变换。它不会改变底层布局,只是改变它在屏幕上绘制的方式。不可能有点比例但没有线粗细比例。

A ScaleTransform is a render transform. It doesn't change the underlying layout just changes the way it is drawn on the screen. It isn't possible to have the points scale but not have the line thickness scale.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文