Taking a screenshot

11 views
Skip to first unread message

ncreensame

unread,
Apr 15, 2014, 1:10:10 AM4/15/14
to mozilla-la...@googlegroups.com
Is there an easier way to take a screenshot than this: https://gist.github.com/nelix/10700949 ?

ZER0

unread,
Apr 15, 2014, 3:00:34 AM4/15/14
to mozilla-la...@googlegroups.com
On 15/04/14 07:10 , ncreensame wrote:

> Is there an easier way to take a screenshot than
> this: https://gist.github.com/nelix/10700949 ?

The approach is correct, create a canvas to get the screenshot using
`drawWindow` method, but you can simplify:

https://gist.github.com/ZER0/10708822

Reply all
Reply to author
Forward
0 new messages