Class: DynamicPDFApi::PngMonochromeColorFormat

Inherits:
PngColorFormat show all
Defined in:
lib/ruby_client/Imaging/PngMonochromeColorFormat.rb

Overview

Represents monochrome color format for PNG with black threshold.

Instance Attribute Summary collapse

Attributes inherited from ColorFormat

#type

Instance Method Summary collapse

Constructor Details

#initializePngMonochromeColorFormat

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_thresholdObject

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_algorithmObject

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_percentObject

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