Class: RubySketch::Processing::Image
- Inherits:
-
Object
- Object
- RubySketch::Processing::Image
- Defined in:
- lib/rubysketch/processing.rb
Overview
Image object.
Instance Method Summary collapse
-
#height ⇒ Numeric
Gets height of image.
-
#initialize(image) ⇒ Image
constructor
Initialize image.
-
#save(filename) ⇒ Object
Saves image to file.
-
#width ⇒ Numeric
Gets width of image.
Constructor Details
#initialize(image) ⇒ Image
Initialize image.
1086 1087 1088 |
# File 'lib/rubysketch/processing.rb', line 1086 def initialize (image) @image = image end |
Instance Method Details
#height ⇒ Numeric
Gets height of image.
1102 1103 1104 |
# File 'lib/rubysketch/processing.rb', line 1102 def height () @image.height end |
#save(filename) ⇒ Object
Saves image to file.
1110 1111 1112 |
# File 'lib/rubysketch/processing.rb', line 1110 def save (filename) @image.save filename end |
#width ⇒ Numeric
Gets width of image.
1094 1095 1096 |
# File 'lib/rubysketch/processing.rb', line 1094 def width () @image.width end |