In WPF, I'm starting to use classes like LineGemometry, EllipseGeometry, Geometry Group, Path ... 2D graphics I have chosen these sizes because I saw that this could be a quick thanks to the freezing feature.
I have to draw text with geometry, with specific fonts. The text should be positionable with the same coordinate system as the geometry. And I need to apply a change in the form of a rotate transform.
What will be the best way? I have run into the GlyphRunDrawing class, but it's really complex.
Thank you very much from the very first time.
Just use the formatted text to create a text geometry. Build gimetry, for example, to get a geometry of "text to display" in Font Toma size 16 pixels at point (5,5):
formatted text text = Newly formatted text ("Text to display", Culture Infoc. Contentculture, flow direction. Letterlight, new typeface ("Tahoma"), 16, Brush Black); Geometry geometry = text. Build glomeratry (new point (5, 5));
If you need to do this in XML, you can put this code in markup extension
Comments
Post a Comment