win32screenshot 2.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.rdoc DELETED
@@ -1,113 +0,0 @@
1
- = 2.1.0 2016-01-09
2
- * Add Image#write! for overwriting images.
3
- * Update MiniMagick dependency.
4
- * Update bundled ImageMagick version to 6.9.3-0-portable-Q16-x86.
5
-
6
- = 2.0.0 2015-06-28
7
- * Update MiniMagick dependency due to CVE-2013-2616.
8
- * Update bundled ImageMagick version to 6.9.1-6-Q16-x86.
9
-
10
- = 1.0.10 2013-11-01
11
- * Add license to gemspec.
12
-
13
- = 1.0.9 2013-10-05
14
- * Set mini_magick 3.5.0 as a dependency because 3.6.0 is broken.
15
-
16
- = 1.0.8 2013-03-09
17
- * Loosen up dependencies
18
-
19
- = 1.0.7 2012-02-23
20
- * Bump RAutomation dependency
21
-
22
- = 1.0.6 2011-10-16
23
- * Screenshot will be taken of the whole window instead of client area - e.g. with title bar and such.
24
- * Added :context option to specify which area to take screenshot of - possible values are :window or :client
25
- Win32::Screenshot::Take.of(:window, :hwnd => 1234, :context => :client)
26
-
27
- = 1.0.5 2011-08-18
28
- * Minor output message change
29
-
30
- = 1.0.4 2011-06-18
31
- * Make sure that mini_magick 3.2 is used due to bug in 3.3-s dependency subexec https://github.com/nulayer/subexec/issues/4
32
-
33
- = 1.0.3 2011-04-17
34
- * Try to take a screenshot of the window even if the activation of that window fails.
35
-
36
- = 1.0.2 2011-01-20
37
- * Fixed to work with RAutomation version 0.4
38
-
39
- = 1.0.1 2010-12-18
40
- * Increased RAutomation dependency for version 0.3.0 due to it's new Window#child method
41
- * Making sure that RAutomation's Ffi adapter is always used
42
-
43
- = 1.0.0 2010-12-17 - The New Beginning
44
- * Bundling all necessary libraries/binaries with the gem - ImageMagick and RMagick are no more needed, finally!
45
- * Using MiniMagick to save images to gif, jpg and png format
46
- * Simplified and deleted a lot of code causing backwards incompatibility and major API changes!
47
- Refer to the README.rdoc and documentation for the overview of the new and better API
48
- * From now on this library is following Semantic Versioning (http://semver.org) rules
49
-
50
- = 0.0.8 2010-12-13
51
- * Renamed Win32::Screenshot::Util.all_windows to all_desktop_windows (Roger Pack)
52
- * Added methods to Win32::Screenshot::Util class (Roger Pack):
53
- - window_process_id
54
- - window_class
55
- - windows_hierarchy_with_info
56
- - get_info
57
- - location_of
58
- * It's possible to search windows also by class name (Roger Pack)
59
- * Child windows will be also searched for (Roger Pack)
60
-
61
- = 0.0.7 2010-08-18
62
- * Supports now fully JRuby, 1.9.1 and 1.9.2 MRI!
63
-
64
- = 0.0.6 2010-08-07
65
- * Trying to bring window to the foreground more aggressively (Roger Pack)
66
- * Added utility class Win32::Screenshot.Util with some helper methods not related directly with taking of the screenshots:
67
- - all_windows - enumerates all windows and returns their titles and window handles as an Array (Roger Pack)
68
- - window_title(hwnd) - returns title of the window for specified handle (Jarmo Pertman)
69
- - window_hwnd(title_query) - returns handle of the window for specified title (Jarmo Pertman)
70
- - dimensions_for(hwnd) - returns a width and height for a window with specified handle (Jarmo Pertman)
71
- * Removed a file 'win32screenshot.rb' which was solely used for displaying deprecation warnings for versions older than 0.0.4. Make sure than from now on all require statements require 'win32/screenshot'!
72
-
73
- == Bug Fixes:
74
- * Fixed usages of gdi32.dll BitBlt (Roger Pack)
75
- * It was impossible to specify correctly window titles with regular expressions special characters in them (Roger Pack)
76
-
77
- = 0.0.5 2010-07-07
78
- * Added method window_area for capturing specified area of the window instead of full window (Jarmo Pertman)
79
- Usage: Win32::Screenshot.window_area(title, x1, y1, x2, y2) {|width, height, bmp|}
80
- * Added method foreground_area for capturing area of the foreground (Jarmo Pertman)
81
- Usage: Win32::Screenshot.foreground_area(x1, y1, x2, y2) {|width, height, bmp|}
82
- * Added method desktop_area for capturing area of the visible view (Jarmo Pertman)
83
- Usage: Win32::Screenshot.desktop_area(x1, y1, x2, y2) {|width, height, bmp|}
84
- * Added method hwnd_area for capturing area of the window with specified handle (Jarmo Pertman)
85
- Usage: Win32::Screenshot.hwnd_area(hwnd, x1, y1, x2, y2) {|width, height, bmp|}
86
-
87
- == Internal changes
88
- * 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)
89
- * Using FFI::Struct when searching window handle (Roger Pack)
90
-
91
- = 0.0.4 2010-05-27 - A Complete Overhaul
92
- * Fixed a bug where taking of screenshots failed on some sizes of windows (thanks for the tip from Tony Popiel)
93
- * Blocks should be used when taking screenshots for cleaning up resources after usage (Aslak Hellesøy)
94
- * Changed library structure - it is now needed to require 'win32/screenshot' (Aslak Hellesøy)
95
- * Replaced Ruby::DL with Ruby-FFI for better VM support and less segfaults (Jarmo Pertman)
96
- * Added Ruby 1.9.1 support (Jarmo Pertman)
97
- * Win32::Screenshot.window restores window if it's minimized before taking screenshots and brings it to the foreground (Jarmo Pertman)
98
- * Changed some internal method names (Jarmo Pertman)
99
- * Replaced Test::Unit with RSpec and made specs more robust (Jarmo Pertman)
100
-
101
- PS! This version is not backwards compatible due to different method names and usage, but upgrading should be relatively easy nevertheless.
102
-
103
- = 0.0.3 2007-01-18
104
- * Fixed bug with too many callbacks
105
- * Added get_hwnd(Regexp)
106
-
107
- = 0.0.2 2006-12-02
108
- * Added desktop method (patch from Ryan Schuft)
109
- * Added HTTP server example (patch from Ryan Schuft)
110
- * Added window(regexp) method
111
-
112
- = 0.0.1 2006-11-29
113
- * First release
data/README.rdoc DELETED
@@ -1,47 +0,0 @@
1
- = Win32::Screenshot
2
-
3
- * http://github.com/jarmo/win32screenshot
4
-
5
- == DESCRIPTION
6
-
7
- Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!
8
-
9
- == INSTALL
10
-
11
- gem install win32screenshot
12
-
13
- == SYNOPSIS
14
-
15
- require 'win32/screenshot'
16
-
17
- # Take a screenshot of the window with the specified title
18
- Win32::Screenshot::Take.of(:window, title: "Windows Internet Explorer").write("image.bmp")
19
-
20
- # Take a screenshot of the foreground
21
- Win32::Screenshot::Take.of(:foreground).write("image.png")
22
-
23
- # Take a screenshot of the foreground, and writing over previous image if it exists
24
- Win32::Screenshot::Take.of(:foreground).write!("image.png")
25
-
26
- # Take a screenshot of the specified window's top-left corner's area
27
- Win32::Screenshot::Take.of(:window, title: /internet/i, area: [10, 10, 20, 20]).write("image.jpg")
28
-
29
- # Take a screenshot of the window with the specified handle
30
- Win32::Screenshot::Take.of(:window, hwnd: 123456).write("image.gif")
31
-
32
- # Take a screenshot of the window's client area (e.g. without title bar) with the specified handle
33
- Win32::Screenshot::Take.of(:window, hwnd: 123456, context: :client)
34
-
35
- # Take a screenshot of the child window with the specified internal class name
36
- Win32::Screenshot::Take.of(:rautomation, RAutomation::Window.new(hwnd: 123456).
37
- child(class: "Internet Explorer_Server")).write("image.png")
38
-
39
- # Use the bitmap blob for something else
40
- image = Win32::Screenshot::Take.of(:window, hwnd: 123456)
41
- image.height # => height of the image
42
- image.width # => width of the image
43
- image.bitmap # => bitmap blob
44
-
45
- == Copyright
46
-
47
- Copyright (c) Jarmo Pertman, Aslak Hellesøy. See LICENSE for details.