c# - WPF - How to make thickness be independent on scale? -
i draw shapes programmatically, via drawingcontext. , want shapes have fixed thickness independent on rendertransform's scale.
can it?
use drawgeometry
method draw shapes geometries. apply transform transform
property.
var transform = new scaletransform(...); var ellipse = new ellipsegeometry(); ... ellipse.transform = transform; drawingcontext.drawgeometry(null, pen, ellipse);
you can modify transform after drawing shapes.
Comments
Post a Comment