InkDrawingAttributes.CreateForPencil Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an InkDrawingAttributes object for rendering an ink stroke with pencil characteristics.
public:
static InkDrawingAttributes ^ CreateForPencil();
static InkDrawingAttributes CreateForPencil();
public static InkDrawingAttributes CreateForPencil();
function createForPencil()
Public Shared Function CreateForPencil () As InkDrawingAttributes
Returns
An InkDrawingAttributes object that supports the following properties:
Setting other InkDrawingAttributes properties results in an exception.
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Remarks
By default, a pencil draws a soft-edged, textured, and semi-transparent stroke (useful for layered shading effects) with a Circle PenTip. The stroke color (darkness) is dependent on the pen pressure detected.
Applies to
See also
- InkToolbar
- InkToolbarPencilButton
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample