Sha256: 2f0c21f987b327a5fbbdcb726e10514ed8a3ca4d026bbadb820e8905ebbf02bf
Contents?: true
Size: 1.57 KB
Versions: 5
Compression:
Stored size: 1.57 KB
Contents
= Win32::Screenshot * http://github.com/jarmo/win32screenshot == DESCRIPTION Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats! == INSTALL gem install win32screenshot == SYNOPSIS require 'win32/screenshot' # Take a screenshot of the window with the specified title Win32::Screenshot::Take.of(:window, :title => "Windows Internet Explorer").write("image.bmp") # Take a screenshot of the foreground Win32::Screenshot::Take.of(:foreground).write("image.png") # Take a screenshot of the specified window's top-left corner's area Win32::Screenshot::Take.of(:window, :title => /internet/i, :area => [10, 10, 20, 20]).write("image.jpg") # Take a screenshot of the window with the specified handle Win32::Screenshot::Take.of(:window, :hwnd => 123456).write("image.gif") # Take a screenshot of the window's client area (e.g. without title bar) with the specified handle Win32::Screenshot::Take.of(:window, :hwnd => 123456, :context => :client) # Take a screenshot of the child window with the specified internal class name Win32::Screenshot::Take.of(:rautomation, RAutomation::Window.new(:hwnd => 123456). child(:class => "Internet Explorer_Server")).write("image.png") # Use the bitmap blob for something else image = Win32::Screenshot::Take.of(:window, :hwnd => 123456) image.height # => height of the image image.width # => width of the image image.bitmap # => bitmap blob == Copyright Copyright (c) 2010 Jarmo Pertman, Aslak Hellesøy. See LICENSE for details.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
win32screenshot-1.0.10 | README.rdoc |
win32screenshot-1.0.9 | README.rdoc |
win32screenshot-1.0.8 | README.rdoc |
win32screenshot-1.0.7 | README.rdoc |
win32screenshot-1.0.6 | README.rdoc |