trifleJS
trifleJS copied to clipboard
Support for webPage.clipRect
Added support for clipRect by cropping the full screen image.
Somme additional information on specific code changes:
API/Modules/WebPage.cs @@ -812,18 +812,26 @@ private Rectangle ClipRect There was an exception when top/left/width/height was null (set as undefined in Javascript, for example)
API/Modules/WebPage.cs @@ -266,7 +308,16 @@ public Bitmap Render(double ratio) There could be a bottom and/or right scroll bar, check for both to add 50px.
BTW, the comment for "public void Render(string filename, double ratio, Rectangle clipRect)" is incorrect: top and left are used too
Thanks @juliensobrier,
I knew page.clipRect was broken just hadnt had time to get it working.
Will merge when I get a moment to test.
Ta! Steven