Class: Identify::Image::BMP
- Inherits:
-
Identify::Image
- Object
- Identify::Image
- Identify::Image::BMP
- Defined in:
- lib/identify.rb
Overview
TIFF
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Identify::Image
#as_hash, formats, identify, inherited, parse
Class Method Details
.handle?(data) ⇒ Boolean
88 89 90 |
# File 'lib/identify.rb', line 88 def self.handle? data %r{\ABM}.match(data) end |
Instance Method Details
#parse(data) ⇒ Object
92 93 94 |
# File 'lib/identify.rb', line 92 def parse data as_hash 'bmp', *data.unpack("x18VV") end |