I want to make a simple drawing app for children with C# for WinRT. The user can choose a picture and draw a little bit. But how can I save the image (together with the background)? There is no functionality to save the image with background.
相关问题
- Inheritance impossible in Windows Runtime Componen
- How do I create a multidimensional array of object
- Listview applies a check to other listview items h
- Replacing or recreating a file in Windows 8 RT kee
- Save Image to file keeping aspect ratio in a WPF a
相关文章
- Show flyout using BottomAppBar
- New Windows Application - What language?
- Get English exception message instead of local lan
- Can the “dynamic” type vary safely in a generic co
- How to remove an element from an IGrouping
- Exception when reading text from the file using Fi
- Check if a datetime is in same week as other datet
- HttpUtility.HtmlDecode in WinRT
If you draw your image into a
WriteableBitmap
WinRT XAML Toolkit has some extension methods you can use to save the image:The toolkit also has some methods in the
WinRTXamlToolkit.Composition
library to render text and shapes laid out with XAML UI into an image using Direct2D, but it is still in early stage of development and does not support rendering image controls or backgrounds yet.I tried to use your library to render a Canvas into an image file but I got this error runtime: "Can't find component. (Exception from HRESULT: 0x88982F50)". Code looks like this: