Class: DynamicPDFApi::ImageInformation
- Inherits:
-
Object
- Object
- DynamicPDFApi::ImageInformation
- Defined in:
- lib/ruby_client/ImageInformation.rb
Overview
Represents an image information.
Instance Attribute Summary collapse
-
#bits_per_component ⇒ Object
Gets the bits per component of the image.
-
#color_space ⇒ Object
Gets the color space of the image.
-
#height ⇒ Object
Gets the height of the image.
-
#horizontal_dpi ⇒ Object
Gets the horizontalDpi of the image.
-
#number_of_components ⇒ Object
Gets the number of color components present in the image.
-
#page_number ⇒ Object
Gets page number of the pdf where the image is present.
-
#vertical_dpi ⇒ Object
Gets the verticalDpi of the image.
-
#width ⇒ Object
Gets the width of the image.
Instance Method Summary collapse
-
#initialize(_resource) ⇒ ImageInformation
constructor
A new instance of ImageInformation.
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_component ⇒ Object
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_space ⇒ Object
Gets the color space of the image.
55 56 57 |
# File 'lib/ruby_client/ImageInformation.rb', line 55 def color_space @color_space end |
#height ⇒ Object
Gets the height of the image.
30 31 32 |
# File 'lib/ruby_client/ImageInformation.rb', line 30 def height @height end |
#horizontal_dpi ⇒ Object
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_components ⇒ Object
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_number ⇒ Object
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_dpi ⇒ Object
Gets the verticalDpi of the image.
40 41 42 |
# File 'lib/ruby_client/ImageInformation.rb', line 40 def vertical_dpi @vertical_dpi end |
#width ⇒ Object
Gets the width of the image.
25 26 27 |
# File 'lib/ruby_client/ImageInformation.rb', line 25 def width @width end |