Class: OSX::CIImage
- Inherits:
-
Object
- Object
- OSX::CIImage
- Defined in:
- lib/capture/extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#cgimage ⇒ Object
9 10 11 |
# File 'lib/capture/extensions.rb', line 9 def cgimage OSX::NSBitmapImageRep.alloc.initWithCIImage(self).CGImage() end |
#save(target, format = OSX::NSJPEGFileType, properties = nil) ⇒ Object
3 4 5 6 7 |
# File 'lib/capture/extensions.rb', line 3 def save(target, format = OSX::NSJPEGFileType, properties = nil) bitmapRep = OSX::NSBitmapImageRep.alloc.initWithCIImage(self) blob = bitmapRep.representationUsingType_properties(format, properties) blob.writeToFile_atomically(File.(target), false) end |