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-2.4.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.4.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.4.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.3.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.2.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.5 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.4 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.3 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.1.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.0.2 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.0.1 lib/ios/sugarcube-image/ciimage.rb
sugarcube-2.0.0 lib/ios/sugarcube-image/ciimage.rb
sugarcube-1.7.0 lib/sugarcube-image/ciimage.rb
sugarcube-1.6.3 lib/sugarcube-image/ciimage.rb
sugarcube-1.6.2 lib/sugarcube-image/ciimage.rb
sugarcube-1.6.1 lib/sugarcube-image/ciimage.rb
sugarcube-1.6.0 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.9 lib/sugarcube-image/ciimage.rb