Class: ZPNG::BMP::TypedBlock
- Inherits:
-
Struct
- Object
- Struct
- ZPNG::BMP::TypedBlock
- Defined in:
- lib/zpng/bmp/reader.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
64 65 66 |
# File 'lib/zpng/bmp/reader.rb', line 64 def data @data end |
#offset ⇒ Object
Returns the value of attribute offset
64 65 66 |
# File 'lib/zpng/bmp/reader.rb', line 64 def offset @offset end |
#size ⇒ Object
Returns the value of attribute size
64 65 66 |
# File 'lib/zpng/bmp/reader.rb', line 64 def size @size end |
#type ⇒ Object
Returns the value of attribute type
64 65 66 |
# File 'lib/zpng/bmp/reader.rb', line 64 def type @type end |
Instance Method Details
#inspect ⇒ Object
65 66 67 68 69 70 |
# File 'lib/zpng/bmp/reader.rb', line 65 def inspect # string length of 16 is for alignment with BITMAP....HEADER chunks on # zpng CLI output "<%s size=%-5d (0x%-4x) offset=%-5d (0x%-4x)>" % [type, size, size, offset, offset] end |
#pack ⇒ Object
71 |
# File 'lib/zpng/bmp/reader.rb', line 71 def pack; data; end |