In most cases, the screenshot I am trying to take is scaled down on the browser but I want to export it as larger. I am using the bheight and bwidth values to indicate what the height and width of the element is on the webpage and then passing the width and height value that I want (which will be the same aspect ratio). In some cases, the height is 2-4 times larger than the bheight and that starts to make the image very blurry.
All elements inside the div that I am trying to capture are not being enlarged larger than 100% of their size though. So for example, the bwidth of the div might be 300px and I want it to export as 900px wide. All images inside that div show up no larger than 300px but their true width is 1000px. Given that the image is 1000px wide, it should have no issue being 900px wide but it looks blurry like it was really a 300px wide image that is zoomed 3x.
Additionally, the text in that image is blurry.
A couple questions:
- Am I doing something wrong?
- How does Grabzit scale up? Is it taking a screenshot at 300px wide (in my example above) and then scaling it up after? Or is it scaleing my elements from HTML first, then returning the screenshot?
- Is the only way to achieve what I want to convert the HTML so all height and width values are increased by the scale I want?
I am using the ConvertHTML method with DataURI
Thanks.