lib/qrtools/image.rb
###
# Convert this Image to an OSX::NSImage
Convert this Image to an OSX::NSImage
Convert this Image to an OSX :: NSImage
def to_nsimage
      require 'osx/cocoa'
      filename = File.join(Dir::tmpdir, 'out.jpg')
      save(filename)
      OSX::NSImage.alloc.initWithContentsOfFile filename
    end
def to_nsimage require 'osx/cocoa' filename = File . join ( Dir :: tmpdir , 'out.jpg' ) save ( filename ) OSX :: NSImage . alloc . initWithContentsOfFile filename end
Convert this Image to an OSX::NSImage
Convert this Image to an OSX :: NSImage