microsoft / Win2D

Win2D is an easy-to-use Windows Runtime API for immediate mode 2D graphics rendering with GPU acceleration. It is available to C#, C++ and VB developers writing apps for the Windows Universal Platform (UWP). It utilizes the power of Direct2D, and integrates seamlessly with XAML and CoreWindow.
http://microsoft.github.io/Win2D
Other
1.8k stars 284 forks source link

CanvasDrawingSession throw an exception if CompositionVirtualDrawingSurface is more than or equal 18000 #596

Closed IbraheemOsama closed 6 years ago

IbraheemOsama commented 6 years ago

Hi,

I'm creating an InfiniteCanvas control in C#/UWP and I was using CompositionVirtualDrawingSurface, when I set the width of CompositionVirtualDrawingSurface size(width/height) to more than 18000px I receive an exception.

canvaserror

Why I'm doing that because I've an InkCanvas that can hold till 1 << 21 px and I want to sync between the CompisitionVirtualDrawingSurface and the InkCanvas.

Am I doing something wrong here ?

Thanks

shawnhar commented 6 years ago

Hi,

CompositionVirtualDrawingSurface isn't actually a part of Win2D. You can get help on this API from the composition team over on https://github.com/Microsoft/WindowsUIDevLabs/issues.

Thanks!