Sha256: adf471d3c8366b41d8c6b73ac245c99bbcd27bf1d1f9d28596a3ca530bcb0e1c

Contents?: true

Size: 433 Bytes

Versions: 88

Compression:

Stored size: 433 Bytes

Contents

class CIImage

  def uiimage(scale=nil, orientation=nil)
    if scale
      orientation ||= UIImageOrientationUp
      return UIImage.imageWithCIImage(self, scale: scale, orientation: orientation)
    else
      return UIImage.imageWithCIImage(self)
    end
  end

  def ciimage
    return self
  end

  def apply_filter(filter)
    filter.setValue(self, forKey: 'inputImage')
    return filter.valueForKey('outputImage')
  end

end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
sugarcube-3.0.4 lib/ios/sugarcube-image/ciimage.rb
sugarcube-3.0.3 lib/ios/sugarcube-image/ciimage.rb
sugarcube-3.0.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-3.0.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-3.0.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.12.3 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.12.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.12.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.12.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.11.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.11.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.10.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.9.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.8.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.8.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.8.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.7.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.7.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.6.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.5.0 lib/ios/sugarcube-image/ciimage.rb