Class: Pdfrb::Model::Type::HalftoneType1
- Inherits:
-
Halftone
- Object
- Object
- Cos::Dictionary
- Halftone
- Pdfrb::Model::Type::HalftoneType1
- Defined in:
- lib/pdfrb/model/type/halftone_type1.rb
Overview
Type 1 halftone: a 1-bit tile sampled from a halftone screen cell defined by frequency, angle, and spot function.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
- #accurate_screens? ⇒ Boolean
- #angle ⇒ Object
- #frequency ⇒ Object
- #spot_function ⇒ Object
- #transfer_function ⇒ Object
Methods inherited from Halftone
#halftone_name, #halftone_type, #type10?, #type16?, #type1?, #type5?, #type6?
Methods inherited from Cos::Dictionary
#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, 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, own_fields, #pdf_type, register_type, type_map, #validate
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::Dictionary
Instance Method Details
#accurate_screens? ⇒ Boolean
12 |
# File 'lib/pdfrb/model/type/halftone_type1.rb', line 12 def accurate_screens?; truthy?(self[:AccurateScreens]); end |
#angle ⇒ Object
10 |
# File 'lib/pdfrb/model/type/halftone_type1.rb', line 10 def angle; self[:Angle]; end |
#frequency ⇒ Object
9 |
# File 'lib/pdfrb/model/type/halftone_type1.rb', line 9 def frequency; self[:Frequency]; end |
#spot_function ⇒ Object
11 |
# File 'lib/pdfrb/model/type/halftone_type1.rb', line 11 def spot_function; self[:SpotFunction]; end |
#transfer_function ⇒ Object
13 |
# File 'lib/pdfrb/model/type/halftone_type1.rb', line 13 def transfer_function; self[:TransferFunction]; end |