Module: GenericGIF
- Defined in:
- lib/native_file_types/generic/GenericGIF.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.is_gif?(native_file) ⇒ Boolean
7 8 9 |
# File 'lib/native_file_types/generic/GenericGIF.rb', line 7 def GenericGIF.is_gif?(native_file) return (native_file.data_without_header[0,4]=="GIF8") end |
Instance Method Details
#picture_format ⇒ Object
20 21 22 |
# File 'lib/native_file_types/generic/GenericGIF.rb', line 20 def picture_format :gif end |
#picture_height ⇒ Object
17 18 19 |
# File 'lib/native_file_types/generic/GenericGIF.rb', line 17 def picture_height data_without_header[8]+(data_without_header[9]<<8) end |
#picture_width ⇒ Object
14 15 16 |
# File 'lib/native_file_types/generic/GenericGIF.rb', line 14 def picture_width data_without_header[6]+(data_without_header[7]<<8) end |
#to_picture ⇒ Object
10 11 12 |
# File 'lib/native_file_types/generic/GenericGIF.rb', line 10 def to_picture data_without_header end |