Class: Image

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImage

Returns a new instance of Image.



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

def initialize()
  @data = []
  @height = 0
  @width = 0
  @channels = 0
end

Instance Attribute Details

#channelsObject (readonly)

Returns the value of attribute channels.



6
7
8
# File 'lib/image.rb', line 6

def channels
  @channels
end

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/image.rb', line 6

def data
  @data
end

#heightObject (readonly)

Returns the value of attribute height.



6
7
8
# File 'lib/image.rb', line 6

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



6
7
8
# File 'lib/image.rb', line 6

def width
  @width
end

Instance Method Details

#read(path) ⇒ Object



14
15
16
# File 'lib/image.rb', line 14

def read(path)

end

#write(path) ⇒ Object



18
19
# File 'lib/image.rb', line 18

def write(path)
end