In this article, I will write an application that allows us to set the Ink Overlay properties dynamically based on the values selected by the user. The application looks like the following figure, where user can enter width and height of the overlay and select a color by clicking the Select Pen Color button. The Apply button applies the settings to the overlay.
If you don't want to download the attached project, you need to create a Windows Forms application and add reference to Microsoft Tablet PC API. See steps in My First Tablet PC application.
Now define the following private variables.
private
DrawingAttributes object provides few more useful properties. You can use AntiAliased property to anti-aliasing of the ink and PenTip property to change the tip of the pen.
The Transparency property allows you to set the transparency of the ink.
attributes.Transparency = 120;
Download source code for more details.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: