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-1.3.7 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.6 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.5 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.4 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.3 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.2 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.1 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.0 lib/sugarcube-image/ciimage.rb