Forum: Ruby [ANN] Win32::Screenshot 0.0.5

Posted by Jarmo Pertman (juuser)
on 2010-07-07 22:58
Hello!

I've release version 0.0.5 of Win32::Screenshot - Capture Screenshots on
Windows with Ruby!

= 0.0.5 2010-07-07
* Added method window_area for capturing specified area of the window
instead of full window (Jarmo Pertman)
  Usage: Win32::Screenshot.window_area(title, x1, y1, x2, y2) {|width,
height, bmp|}
* Added method foreground_area for capturing area of the foreground
(Jarmo Pertman)
  Usage: Win32::Screenshot.foreground_area(x1, y1, x2, y2) {|width,
height, bmp|}
* Added method desktop_area for capturing area of the visible view
(Jarmo Pertman)
  Usage: Win32::Screenshot.desktop_area(x1, y1, x2, y2) {|width, height,
bmp|}
* Added method hwnd_area for capturing area of the window with specified
handle (Jarmo Pertman)
  Usage: Win32::Screenshot.hwnd_area(hwnd, x1, y1, x2, y2) {|width,
height, bmp|}

== Internal changes
* Removed usage of ShowWindow with parameter SW_SHOW when trying to
bring window to front due it's behaviour of resizing window if it was
maximized (Jarmo Pertman)
* Using FFI::Struct when searching window handle (Roger Pack)

Jarmo
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.