Class: Pdfrb::Model::Type::LabRangeArray

Inherits:
PdfArray show all
Defined in:
lib/pdfrb/model/type/misc_helpers.rb

Overview

Lab Range Array [a_min a_max b_min b_max]. Used inside the Lab color space dict (s8.6.3.4).

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from PdfArray

#<<, #==, #[], #[]=, #delete_at, #each, #empty?, #initialize, #inspect, #length, #push, #to_a

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::PdfArray

Instance Method Details

#a_maxObject



31
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 31

def a_max; self[1]; end

#a_minObject



30
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 30

def a_min; self[0]; end

#b_maxObject



33
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 33

def b_max; self[3]; end

#b_minObject



32
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 32

def b_min; self[2]; end

#default?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/pdfrb/model/type/misc_helpers.rb', line 35

def default?
  a_min == -100 && a_max == 100 && b_min == -100 && b_max == 100
end