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.5.8 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.7 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.6 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.5 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.4 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.3 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.2 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.1 lib/sugarcube-image/ciimage.rb
sugarcube-1.5.0 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.6 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.5 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.4 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.3 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.2 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.1 lib/sugarcube-image/ciimage.rb
sugarcube-1.4.0 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.11 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.10 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.9 lib/sugarcube-image/ciimage.rb
sugarcube-1.3.8 lib/sugarcube-image/ciimage.rb