Click here to Skip to main content
15,895,922 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,I'm beginner in wpf I make a program this first my attempt to use Inkcanvas(Ink,GestureOnly,select,...) my question is how can I write text(text not use Ink) inside any shape for example Ellipse or any thing and how can I save all the window as image
Posted
Updated 7-Nov-14 5:24am
v2
Comments

1 solution

Creating such shapes and writing text to the images is a work that can be done using Graphics. The .NET framework exposes a System.Drawing[^] namespace, which can be used to work with these types of problems in programming.

Although this is not the way of working with Graphics and images in WPF and this System.Drawing namespace is better defined for Windows Forms application, but you can use it to work out the common tasks for creating a simple Ecllipse, Write text to the Graphics object and then save it in a file.

To be more precise and contexual to the WPF and the XAML markup, you can go to this[^] MSDN document and learn about Graphics in WPF.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900