Class: Pdfrb::Model::Type::SoftMaskAlpha

Inherits:
Cos::Dictionary show all
Defined in:
lib/pdfrb/model/type/soft_mask.rb

Overview

Soft-mask dictionary /SMask in an ExtGState (s11.6.5.2). The transfer function TR and backdrop color BC apply while compositing the mask group G.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

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

#arlington_object

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

#alpha?Boolean

Returns:

  • (Boolean)


18
# File 'lib/pdfrb/model/type/soft_mask.rb', line 18

def alpha?; true; end

#backdrop_colorObject



15
# File 'lib/pdfrb/model/type/soft_mask.rb', line 15

def backdrop_color; self[:BC]; end

#groupObject



14
# File 'lib/pdfrb/model/type/soft_mask.rb', line 14

def group; self[:G]; end

#luminosity?Boolean

Returns:

  • (Boolean)


19
# File 'lib/pdfrb/model/type/soft_mask.rb', line 19

def luminosity?; false; end

#subtypeObject



13
# File 'lib/pdfrb/model/type/soft_mask.rb', line 13

def subtype; self[:S]; end

#transfer_functionObject



16
# File 'lib/pdfrb/model/type/soft_mask.rb', line 16

def transfer_function; self[:TR]; end

#typeObject



12
# File 'lib/pdfrb/model/type/soft_mask.rb', line 12

def type; self[:Type]; end