question

Ivanich avatar image
0 Votes"
Ivanich asked ·

Can I change InkCanvas DPI?

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);







windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
1 Vote"
RichardZhang-MSFT answered ·

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.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.