Class: Pdfrb::Model::Type::ShadingType2

Inherits:
Shading show all
Defined in:
lib/pdfrb/model/type/shading.rb

Overview

Type 2 — axial shading (s8.7.4.3).

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods included from ShadingCommon

#anti_alias?, #axial?, #background, #bbox, #color_space, #coons_patch?, #domain, #free_form_gouraud?, #function, #function_based?, #lattice_gouraud?, #radial?, #shading_type, #tensor_patch?

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

#coordsObject



41
# File 'lib/pdfrb/model/type/shading.rb', line 41

def coords; self[:Coords]; end

#extendObject



42
# File 'lib/pdfrb/model/type/shading.rb', line 42

def extend; self[:Extend]; end

#extends_end?Boolean

Returns:

  • (Boolean)


50
# File 'lib/pdfrb/model/type/shading.rb', line 50

def extends_end?; extend && extend[1] == true; end

#extends_start?Boolean

Returns:

  • (Boolean)


49
# File 'lib/pdfrb/model/type/shading.rb', line 49

def extends_start?; extend && extend[0] == true; end

#x0Object



44
# File 'lib/pdfrb/model/type/shading.rb', line 44

def x0; coords && coords[0]; end

#x1Object



45
# File 'lib/pdfrb/model/type/shading.rb', line 45

def x1; coords && coords[2]; end

#y0Object



46
# File 'lib/pdfrb/model/type/shading.rb', line 46

def y0; coords && coords[1]; end

#y1Object



47
# File 'lib/pdfrb/model/type/shading.rb', line 47

def y1; coords && coords[3]; end