Sunday, December 28, 2014

How do I add a captured image from webview to clipboard?

Hi RandyPete,


The things might be a bit complicate in your scenario.


1, You are able to convert the html in webview to a image, and now, convert the image to a base64 string: http://stackoverflow.com/questions/6150289/how-to-convert-image-into-base64-string-using-javascript


2, Using external.notify() to pass the base 64 string out to your Windows Store App


3, Convert the base 64 string to your image: http://stackoverflow.com/questions/14855722/read-base64-image-with-c-sharp-in-a-windows-8-app


4, Copy the image to the Clipboard.


Done.


--James




We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

Click HERE to participate the survey.


No comments:

Post a Comment