Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

New Post: HtmlRender.Render - Pixilated Images

$
0
0
Thanks for the quick reply. I have tried the HtmlRender.RenderToImage method which did work better the text is now clear again. However, the background is now returning as black - I need to have it transparent. This is what I wrote:
var css = HtmlRenderer.CssData.Parse( "font-family:Lucida Handwriting;font-size:10px;", true );
Image theImage = HtmlRender.RenderToImage( htmlString, (int)maxSize.Width, (int)maxSize.Height, Color.Transparent, css );
Image

Also, I don't know if I'm using the CssData.Parse properly - but it doesn't appear to be applying anything to the image.

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>