Class: DynamicPDFApi::ImageInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_client/ImageInformation.rb

Overview

Represents an image information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_resource) ⇒ ImageInformation

Returns a new instance of ImageInformation.



6
7
8
9
10
11
12
13
14
15
# File 'lib/ruby_client/ImageInformation.rb', line 6

def initialize(_resource)
  @page_number = nil
  @width = nil
  @height = nil
  @horizontal_dpi = nil
  @vertical_dpi = nil
  @number_of_components = nil
  @bits_per_component = nil
  @color_space = nil
end

Instance Attribute Details

#bits_per_componentObject

Gets the bits per component of the image.



50
51
52
# File 'lib/ruby_client/ImageInformation.rb', line 50

def bits_per_component
  @bits_per_component
end

#color_spaceObject

Gets the color space of the image.



55
56
57
# File 'lib/ruby_client/ImageInformation.rb', line 55

def color_space
  @color_space
end

#heightObject

Gets the height of the image.



30
31
32
# File 'lib/ruby_client/ImageInformation.rb', line 30

def height
  @height
end

#horizontal_dpiObject

Gets the horizontalDpi of the image.



35
36
37
# File 'lib/ruby_client/ImageInformation.rb', line 35

def horizontal_dpi
  @horizontal_dpi
end

#number_of_componentsObject

Gets the number of color components present in the image.



45
46
47
# File 'lib/ruby_client/ImageInformation.rb', line 45

def number_of_components
  @number_of_components
end

#page_numberObject

Gets page number of the pdf where the image is present.



20
21
22
# File 'lib/ruby_client/ImageInformation.rb', line 20

def page_number
  @page_number
end

#vertical_dpiObject

Gets the verticalDpi of the image.



40
41
42
# File 'lib/ruby_client/ImageInformation.rb', line 40

def vertical_dpi
  @vertical_dpi
end

#widthObject

Gets the width of the image.



25
26
27
# File 'lib/ruby_client/ImageInformation.rb', line 25

def width
  @width
end