Class: Bmp
- Inherits:
-
Object
- Object
- Bmp
- Defined in:
- lib/bmp.rb
Instance Method Summary collapse
- #decompress_RLE4 ⇒ Object
- #decompress_RLE8 ⇒ Object
- #describe ⇒ Object
-
#initialize(path) ⇒ Bmp
constructor
A new instance of Bmp.
- #populate_colors(array) ⇒ Object
- #read_from_palette ⇒ Object
- #read_from_pixel_array ⇒ Object
- #read_masks ⇒ Object
- #read_to_array ⇒ Object
- #read_to_palette ⇒ Object
-
#readbmp(path) ⇒ Object
returns an image object.
- #write_to_bmp(name, array, bpp, compression_type) ⇒ Object
Constructor Details
#initialize(path) ⇒ Bmp
Returns a new instance of Bmp.
6 7 8 |
# File 'lib/bmp.rb', line 6 def initialize(path) end |
Instance Method Details
#decompress_RLE4 ⇒ Object
34 35 36 |
# File 'lib/bmp.rb', line 34 def decompress_RLE4 end |
#decompress_RLE8 ⇒ Object
39 40 41 |
# File 'lib/bmp.rb', line 39 def decompress_RLE8 end |
#describe ⇒ Object
22 23 24 |
# File 'lib/bmp.rb', line 22 def describe end |
#populate_colors(array) ⇒ Object
49 50 51 |
# File 'lib/bmp.rb', line 49 def populate_colors(array) #creates palette, useful while writing image end |
#read_from_palette ⇒ Object
30 31 32 |
# File 'lib/bmp.rb', line 30 def read_from_palette end |
#read_from_pixel_array ⇒ Object
43 44 45 |
# File 'lib/bmp.rb', line 43 def read_from_pixel_array end |
#read_masks ⇒ Object
18 19 20 |
# File 'lib/bmp.rb', line 18 def read_masks end |
#read_to_array ⇒ Object
26 27 28 |
# File 'lib/bmp.rb', line 26 def read_to_array end |
#read_to_palette ⇒ Object
14 15 16 |
# File 'lib/bmp.rb', line 14 def read_to_palette end |
#readbmp(path) ⇒ Object
returns an image object
10 11 12 |
# File 'lib/bmp.rb', line 10 def readbmp(path) #returns an image object end |
#write_to_bmp(name, array, bpp, compression_type) ⇒ Object
53 54 55 56 |
# File 'lib/bmp.rb', line 53 def write_to_bmp(name, array, bpp, compression_type) end |