How to save image from Canvas control in WinRT 8.1? - windows-runtime

I want to make an image editing application on WinRT.
For that I created some xaml page for image ediitng.
I placed one Canvas control in Grid of xaml page and performed drawing on it using all Pointer events of WinRT.
But I am not able to save this Canvas into image.
I tried RenderTargetBitmap to render the Canvas but not worked.
please help me with some sample code for How to save image from Canvas control in WinRT 8.1?

Related

Windows phone, Using photocamera

I looked at the microsoft documentation on how to create an camera application but i got lost quickly. Here is my question:
How to make the screen show what the camera sees? Do you do this using canvas? I'm really stuck guys.. can you help please?
Are you following the sample camera app?
How to create a base camera app for Windows Phone 8.
They use a Canvas and set the background of the Canvas to the Camera's output. It is very simple to follow. Remember to set the Camera Capability <Capability Name="ID_CAP_ISV_CAMERA"/> in the WMAppManifest.xml file.

windows phone 8.1 transparent tile

Can WP8.1 have the ability to create transparent live tile through code? In WP8, I create the background image of live tile through the WriteableBitmap. But the background of tile only have the theme color in WP8.1 similar to WP8
You need to make sure that the file you're writing supports transparency (eg png) and that the source is transparent. I know there's a tutorial using writableBitmap and a user control. If you're doing something like that, make sure that the user control background is set to transparent.

Save canvas image to device library in html5 phonegap

In my project I want to save a canvas image to device library(Android, ios). I got some plugins like SaveImage.js from phonegap but it does not work at all.
Please help me to clear it out.
Thanks

Dragging desktop images in a swf

Is there any possibility using the drag&drop technology for dragging desktop images onto a flash swf in a HTML document? I would like to be able to load images by dragging a image file from the desktop or file explorer and the traditional way of selecting it clicking the browse button.
Thanks.
It's possible to do that in AIR. See this blog post for a working example and some additional info: http://fbflex.wordpress.com/2010/01/15/how-to-drag-images-from-browsers-and-desktop-to-adobe-ai/

Make image from Silverlight control with embedded html

How to make image from Silverlight control with embedded html. Html was embedded with HtmlPage help. Currently in image i see empty space, where have to be html content. I know that html is rendered in absolute positioned div over silverlight plugin.
Image proxyImage = new Image();
proxyImage.Source = new
WriteableBitmap(Application.Current.RootVisual,
Application.Current.RootVisual.RenderTransform);
The clue is in your answer "over silverlight plugin". Silverlight does not have access to the image that the browser renders over the image. It can only see the surface that it is rendering.