Wacom Ink SDK for devices
Unable to export pen strokes using inkCanvas
I want to save pen strokes to an image file but this is not possible using InkCanvas
Solution
The Wacom.UX.InkCanvas is not officially a part of our SDKs so it is not recommended to use it in production apps.
In order to export the strokes to an image file please proceed as follows:
- Use the IRealTimeInkService (derives from IStrokeDataProvider) to obtain the strokes and draw the strokes in an off-screen layer. Please see Tutorial 1 in the samples provided in the WILL SDK for Ink download file.
- Use the RenderingContext.ReadPixels method to read the bitmap data from the layer.
- Save the bitmap data using the UWP API for images.