Class: Pdfrb::Model::Type::XObjectImageMask
- Inherits:
-
Cos::Stream
- Object
- Object
- Cos::Dictionary
- Cos::Stream
- Pdfrb::Model::Type::XObjectImageMask
- Defined in:
- lib/pdfrb/model/type/xobject_image.rb
Overview
Image-mask image XObject /ImageMask true (s8.9.6.4): 1-bpp stencil painted with the current fill color.
Instance Attribute Summary
Attributes inherited from Cos::Stream
Attributes inherited from Object
Instance Method Summary collapse
- #decode ⇒ Object
- #height ⇒ Object
-
#inverted? ⇒ Boolean
/Decode [0 1] = paint 1-bits; [1 0] = inverted.
- #width ⇒ Object
Methods inherited from Cos::Stream
#decoded_stream, #encoded_stream=, #initialize
Methods inherited from Cos::Dictionary
#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_scalar, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods included from Cos::ArlingtonBacked
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Stream
Instance Method Details
#decode ⇒ Object
75 |
# File 'lib/pdfrb/model/type/xobject_image.rb', line 75 def decode; self[:Decode]; end |
#height ⇒ Object
74 |
# File 'lib/pdfrb/model/type/xobject_image.rb', line 74 def height; self[:Height]; end |
#inverted? ⇒ Boolean
/Decode [0 1] = paint 1-bits; [1 0] = inverted.
78 |
# File 'lib/pdfrb/model/type/xobject_image.rb', line 78 def inverted?; decode && decode[0] == 1; end |
#width ⇒ Object
73 |
# File 'lib/pdfrb/model/type/xobject_image.rb', line 73 def width; self[:Width]; end |