Class: Emfsvg::DibDecoder::Result
- Inherits:
-
Struct
- Object
- Struct
- Emfsvg::DibDecoder::Result
- Defined in:
- lib/emfsvg/dib_decoder.rb
Overview
Decoded DIB bytes. The caller typically passes the concatenation of BMI + bitmap bits (matching how libemf2svg reads the record). We honour both layouts:
* "compact" form: bmi contains exactly header + palette, with no
trailing padding. Pixel data starts at header_size + palette*4.
* "padded" form (CB_BMI > minimum): bmi has unused bytes between
the palette and the bits. Use the optional bits_offset: parameter
(== cb_bmi in libemf2svg terms) to start reading pixels at the
correct byte.
Instance Attribute Summary collapse
-
#color_type ⇒ Object
Returns the value of attribute color_type.
-
#height ⇒ Object
Returns the value of attribute height.
-
#pixels ⇒ Object
Returns the value of attribute pixels.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Attribute Details
#color_type ⇒ Object
Returns the value of attribute color_type
33 34 35 |
# File 'lib/emfsvg/dib_decoder.rb', line 33 def color_type @color_type end |
#height ⇒ Object
Returns the value of attribute height
33 34 35 |
# File 'lib/emfsvg/dib_decoder.rb', line 33 def height @height end |
#pixels ⇒ Object
Returns the value of attribute pixels
33 34 35 |
# File 'lib/emfsvg/dib_decoder.rb', line 33 def pixels @pixels end |
#width ⇒ Object
Returns the value of attribute width
33 34 35 |
# File 'lib/emfsvg/dib_decoder.rb', line 33 def width @width end |