P
Paul Rogers
I have some code that Im sure used to work on Vista under parallels,
but now only works on Vista on a PC hardware.
Im using Win32::Screenshot to capture the windows screen, and then
using rmagick to save to a file
I now get this exception
Insufficient image data in file `'
:in `from_blob'
the code looks like this
width, height, bmp = Win32::Screenshot.desktop
puts "image data height = #{height} width = #{width}"
puts "bmp size is #{bmp.size}"
img = Magick::Image.from_blob(bmp)[0]
I see this displayed
Taking screenshotimage data height = 984 width = 1595
bmp size is 4708494
the gem versions are
rmagick (1.15.9)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.
win32screenshot (0.0.2)
Capture Screenshots on Windows with Ruby
and are the same on win and win-parallels.
can any one tell me what it means, and how to fix?
Thanks
Paul
but now only works on Vista on a PC hardware.
Im using Win32::Screenshot to capture the windows screen, and then
using rmagick to save to a file
I now get this exception
Insufficient image data in file `'
:in `from_blob'
the code looks like this
width, height, bmp = Win32::Screenshot.desktop
puts "image data height = #{height} width = #{width}"
puts "bmp size is #{bmp.size}"
img = Magick::Image.from_blob(bmp)[0]
I see this displayed
Taking screenshotimage data height = 984 width = 1595
bmp size is 4708494
the gem versions are
rmagick (1.15.9)
RMagick is an interface between the Ruby programming language and
the ImageMagick and GraphicsMagick image processing libraries.
win32screenshot (0.0.2)
Capture Screenshots on Windows with Ruby
and are the same on win and win-parallels.
can any one tell me what it means, and how to fix?
Thanks
Paul