Sha256: 63c25427ab418403519a135c4c5843aa552571461880fe6488af2d025eb0e0b8

Contents?: true

Size: 307 Bytes

Versions: 29

Compression:

Stored size: 307 Bytes

Contents

class UIImage
  def uiimage ; self ; end


  def uicolor(alpha=nil)
    color = UIColor.colorWithPatternImage(self)
    if not alpha.nil?
      color = color.colorWithAlphaComponent(alpha.to_f)
    end

    color
  end

  def uiimageview
    @uiimageview = UIImageView.alloc.initWithImage(self)
  end


end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
sugarcube-0.9.2 lib/sugarcube/uiimage.rb
sugarcube-0.9.1 lib/sugarcube/uiimage.rb
sugarcube-0.9 lib/sugarcube/uiimage.rb
sugarcube-0.8.7 lib/sugarcube/uiimage.rb
sugarcube-0.8.6 lib/sugarcube/uiimage.rb
sugarcube-0.8.5 lib/sugarcube/uiimage.rb
sugarcube-0.8.4 lib/sugarcube/uiimage.rb
sugarcube-0.8.3 lib/sugarcube/uiimage.rb
sugarcube-0.8.2 lib/sugarcube/uiimage.rb
sugarcube-0.8.1 lib/sugarcube/uiimage.rb
sugarcube-0.8 lib/sugarcube/uiimage.rb
sugarcube-0.7.9 lib/sugarcube/uiimage.rb
sugarcube-0.7.7 lib/sugarcube/uiimage.rb
sugarcube-0.7.6 lib/sugarcube/uiimage.rb
sugarcube-0.7.4 lib/sugarcube/uiimage.rb
sugarcube-0.7.3 lib/sugarcube/uiimage.rb
sugarcube-0.7.2 lib/sugarcube/uiimage.rb
sugarcube-0.7.1 lib/sugarcube/uiimage.rb
sugarcube-0.7 lib/sugarcube/uiimage.rb
sugarcube-0.6.1 lib/sugarcube/uiimage.rb