# \[ANN\] Win32::Screenshot 0.0.5

**URL:** <https://www.ruby-forum.com/t/ann-win32-screenshot-0-0-5/191236>\
**Category:** Ruby\
**Created:** [July 7, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/ann-win32-screenshot-0-0-5/191236 "2010-07-07T22:58:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juuser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@juuser](https://www.ruby-forum.com/u/juuser)\
**Post date:** [July 7, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/ann-win32-screenshot-0-0-5/191236/1 "2010-07-07T22:58:13Z")

</div>

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 P.)  
Usage: Win32::Screenshot.window\_area(title, x1, y1, x2, y2) {|width,  
height, bmp|}
- Added method foreground\_area for capturing area of the foreground  
(Jarmo P.)  
Usage: Win32::Screenshot.foreground\_area(x1, y1, x2, y2) {|width,  
height, bmp|}
- Added method desktop\_area for capturing area of the visible view  
(Jarmo P.)  
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 P.)  
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 P.)
- Using FFI::Struct when searching window handle (Roger P.)

Jarmo
