Sha256: b76b5a6d20ea0b6d2decc537f48f9eacde734dd347b82f1c7d413604501ab452

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 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

3 entries across 3 versions & 1 rubygems

Version Path
sugarcube-0.10 lib/sugarcube/uiimage.rb
sugarcube-0.9.4 lib/sugarcube/uiimage.rb
sugarcube-0.9.3 lib/sugarcube/uiimage.rb