Class: DynamicPDFApi::PngMonochromeColorFormat
- Inherits:
-
PngColorFormat
- Object
- ColorFormat
- PngColorFormat
- DynamicPDFApi::PngMonochromeColorFormat
- Defined in:
- lib/ruby_client/Imaging/PngMonochromeColorFormat.rb
Overview
Represents monochrome color format for PNG with black threshold.
Instance Attribute Summary collapse
-
#black_threshold ⇒ Object
Gets or sets the black threshold for monochrome PNG, ranges from 0-255.
-
#dithering_algorithm ⇒ Object
Gets or sets the DitheringAlgorithm for PNG.
-
#dithering_percent ⇒ Object
Gets or sets the dithering percentage for PNG.
Attributes inherited from ColorFormat
Instance Method Summary collapse
-
#initialize ⇒ PngMonochromeColorFormat
constructor
Initializes a new instance of the PngMonochromeColorFormat class with monochrome color format type.
Constructor Details
#initialize ⇒ PngMonochromeColorFormat
Initializes a new instance of the PngMonochromeColorFormat class with monochrome color format type.
16 17 18 19 20 21 |
# File 'lib/ruby_client/Imaging/PngMonochromeColorFormat.rb', line 16 def initialize super(ColorFormatType::Monochrome) @black_threshold = nil @dithering_percent = nil @dithering_algorithm = nil end |
Instance Attribute Details
#black_threshold ⇒ Object
Gets or sets the black threshold for monochrome PNG, ranges from 0-255.
9 10 11 |
# File 'lib/ruby_client/Imaging/PngMonochromeColorFormat.rb', line 9 def black_threshold @black_threshold end |
#dithering_algorithm ⇒ Object
Gets or sets the DitheringAlgorithm for PNG.
11 12 13 |
# File 'lib/ruby_client/Imaging/PngMonochromeColorFormat.rb', line 11 def dithering_algorithm @dithering_algorithm end |
#dithering_percent ⇒ Object
Gets or sets the dithering percentage for PNG.
10 11 12 |
# File 'lib/ruby_client/Imaging/PngMonochromeColorFormat.rb', line 10 def dithering_percent @dithering_percent end |