Create WriteableBitmap using HTML content in Windows phone 8.1 -


create writeablebitmap using html content in windows phone 8.1 without involving xaml

i have created webview object in c# , render html content in webview.naviagatetostring , trying object using webview.capturepreviewtostreamasync method getting global exception ( value not fall within expected range).

webview wv = new webview(); wv.navigatetostring(html content); inmemoryrandomaccessstream imras = new inmemoryrandomaccessstream(); await wv.capturepreviewtostreamasync(imras); 

and tried using below code, didn't find dlls.

bitmap m_bitmap = new bitmap(400, 600); pointf point = new pointf(0, 0); sizef maxsize = new system.drawing.sizef(500, 500); htmlrenderer.htmlrender.render(graphics.fromimage(m_bitmap),"<html><body><p>this shitty html code</p><p>this html line</p></body>", point,maxsize); m_bitmap.save(@"c:\test.bmp") 

please me out this.

thanks.

t's impossible currently, windows phone store apps have phone-only screencapture api, still need show content in app.

we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place.


Comments