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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -