Making screenshots with Ruby

T

Thomas

Hello,

Can anyone help me with this one? Been looking for information about it,
but couldn't find any...

I want my program to make a screenshot of the screen (or better: a
specific window), and it should be able to get some data from the
screenshot (compare parts to other images)

Does anyone know how to tackle this problem?

Thanks,

Thomas
 
A

anne001

I want my program to make a screenshot of the screen

I think the rubycocoa example simpleapp does that, you could look at
how they do it.
 
G

guest

Unfortunately cacao is for mac, and the RMagick function is for x
(linux), while I need Windows... Any tips? Maybe there's a way using the
Win32 API?

I don't know how to create a "DestDC" for the bitblt function
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_0fzo.asp),
so I have no idea what to do... Currently I'm using a Visual Basic
program which takes a screenshot (using the clipboard, automatically
pressing the printscreen button) but ofcourse that's not a good
solution, and it needs harddrive access...

Thanks.
 
G

guest

Oh and forgot to add - I'm using them later with RMagick, so I'd want
them loaded in memory in a way that RMagick can understand them, but if
it has to it can be saved to file too :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,654
Latest member
LannySinge

Latest Threads

Top