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.6 lib/sugarcube/uiimage.rb
sugarcube-0.5 lib/sugarcube/uiimage.rb
sugarcube-0.4.2 lib/sugarcube/uiimage.rb
sugarcube-0.4.1 lib/sugarcube/uiimage.rb
sugarcube-0.4 lib/sugarcube/uiimage.rb
sugarcube-0.3.2 lib/sugarcube/uiimage.rb
sugarcube-0.3.1 lib/sugarcube/uiimage.rb
sugarcube-0.3.0 lib/sugarcube/uiimage.rb
sugarcube-0.2.5 lib/sugarcube/uiimage.rb