Method: WinWindow#capture_to_bmp_file
- Defined in:
- lib/winwindow.rb
#capture_to_bmp_file(filename, options = {}) ⇒ Object
captures this window to a bitmap image (a screenshot).
stores the bitmap to a filename specified in the first argument.
takes an options hash. see the documentation on #capture_to_bmp_structs for what options are accepted.
1022 1023 1024 1025 1026 |
# File 'lib/winwindow.rb', line 1022 def capture_to_bmp_file(filename, ={}) File.open(filename, 'wb') do |file| file.write(capture_to_bmp_blob()) end end |