防止 Silverlight 缩放线宽
使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.