Win2D, sharing CanvasBitmap
-
I am using Win2D and the Canvas control. Actually, it is two canvas controls and for both I am using the same image as input. Is it somehow possible to share a CanvasBitmap? Up to now I have to create two bitmaps and to call LoadAsync for each... that takes more time and memory than actually necessary. Cheers, Roland
-
I am using Win2D and the Canvas control. Actually, it is two canvas controls and for both I am using the same image as input. Is it somehow possible to share a CanvasBitmap? Up to now I have to create two bitmaps and to call LoadAsync for each... that takes more time and memory than actually necessary. Cheers, Roland
Give this document a read: http://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_CanvasBitmap.htm[^] You must always consider searching for the problem over the Google. Most of the times the solution is available over the internet for you. Just a few times you've got to crop the solution before you can use it inside your own project. :-) Thanks.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
Give this document a read: http://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_CanvasBitmap.htm[^] You must always consider searching for the problem over the Google. Most of the times the solution is available over the internet for you. Just a few times you've got to crop the solution before you can use it inside your own project. :-) Thanks.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
Hi, usually I am good in using Google... but so far I did not find any solution for this particular problem. And unfortunately your link is also just the standard MSDN page on how to load a resource with CanvasBitmap. But the documentation does not mention how to share ONE CanvasBitmap across TWO or more CanvasControls. Sorry, still searching an answer for my question. :) Or maybe this not possible...? Cheerio