Can I change InkCanvas DPI?

Ivanich 306 Reputation points
2020-02-03T20:13:41.647+00:00

There is a good article "Store and retrieve Windows Ink stroke data" on MSDN. But when you save InkCanvas to GIF this way, generated picture has low DPI and small size.

Can I increase quality of image generated by standard call of

InkCanvas.InkPresenter.StrokeContainer.SaveAsync(outputStream);  
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-02-04T01:00:23.677+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    InkCanvas currently does not provide a corresponding API to do this.

    It should be noted that the purpose of InkCanvas to generate Gif is not to generate a high-quality image, but to embed ISF information (Ink Serialized Format).

    ISF information records detailed data of strokes, which can be loaded at any time through InkCanvas. The loaded strokes are vectorized. Relatively speaking, the Gif we can see is just a preview.

    Thanks.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michael Chourdakis 66 Reputation points
    2022-06-19T15:19:49.123+00:00

    In that case, how do use the IInkd2drenderer to render to a Direct2D device context correctly?

    0 comments No comments