On Thu, Dec 18, 2008 at 02:20:11AM +0900, Satoshi Asakawa wrote:
> I got a cool idea from the Shoes programming course of RubyLearning.org.
>
> It's the screenshot feature like this:
>
> Shoes.app do
> ball = oval 0, 0, 10
> animate{|i| ball.move i, i}
> timer 3 do
> screenshot './pic_in_3_sec.png'
> end
> end
>
> We can get the screenshot of Shoes canvas (meaning without window frame)
> as the png format image data file named pic_in_3_sec.png on the current
> directory! :-D
Believe it or not, this already (partially) exists! It's called the
`snapshot` method and was patched in many months ago, but appears to
be broken now. (It also doesn't capture native controls or video.)
Thus, it has gone undocumented.
I've been meaning to fix and get it to give us perfect screenshots.
So, yeah, I'm in favor of this feature.
_why