Class: Punk::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptopunks.rb,
lib/cryptopunks/image.rb

Constant Summary collapse

Composite =
ImageComposite

Class Method Summary collapse

Class Method Details

.read(path) ⇒ Object

convenience helper



7
8
9
10
# File 'lib/cryptopunks/image.rb', line 7

def self.read( path )   ## convenience helper
  img = ChunkyPNG::Image.from_file( path )
  new( img )
end