class AsposeSlidesCloud::TiffExportOptions

Provides options that control how a presentation is saved in TIFF format.

Attributes

bw_conversion_mode[RW]

Specifies the algorithm for converting a color image into a black and white image. This option will applied only if Aspose.Slides.Export.TiffOptions.CompressionType is set to Aspose.Slides.Export.TiffCompressionTypes.CCITT4 or Aspose.Slides.Export.TiffCompressionTypes.CCITT3.

compression[RW]

Compression type.

dpi_x[RW]

Horizontal resolution, in dots per inch.

dpi_y[RW]

Vertical resolution, in dots per inch.

pixel_format[RW]

Specifies the pixel format for the generated images. Read/write ImagePixelFormat.

show_hidden_slides[RW]

Specifies whether the generated document should include hidden slides or not. Default is false.

slides_layout_options[RW]

Slides layouting options

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 50
def self.attribute_map
  super.merge({
    :'compression' => :'Compression',
    :'dpi_x' => :'DpiX',
    :'dpi_y' => :'DpiY',
    :'show_hidden_slides' => :'ShowHiddenSlides',
    :'pixel_format' => :'PixelFormat',
    :'slides_layout_options' => :'SlidesLayoutOptions',
    :'bw_conversion_mode' => :'BwConversionMode',
  })
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 77
def initialize(attributes = {})
  super

  if attributes.has_key?(:'Compression')
    self.compression = attributes[:'Compression']
  end

  if attributes.has_key?(:'DpiX')
    self.dpi_x = attributes[:'DpiX']
  end

  if attributes.has_key?(:'DpiY')
    self.dpi_y = attributes[:'DpiY']
  end

  if attributes.has_key?(:'ShowHiddenSlides')
    self.show_hidden_slides = attributes[:'ShowHiddenSlides']
  end

  if attributes.has_key?(:'PixelFormat')
    self.pixel_format = attributes[:'PixelFormat']
  end

  if attributes.has_key?(:'SlidesLayoutOptions')
    self.slides_layout_options = attributes[:'SlidesLayoutOptions']
  end

  if attributes.has_key?(:'BwConversionMode')
    self.bw_conversion_mode = attributes[:'BwConversionMode']
  end
  self.format = 'tiff'
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 63
def self.swagger_types
  super.merge({
    :'compression' => :'String',
    :'dpi_x' => :'Integer',
    :'dpi_y' => :'Integer',
    :'show_hidden_slides' => :'BOOLEAN',
    :'pixel_format' => :'String',
    :'slides_layout_options' => :'SlidesLayoutOptions',
    :'bw_conversion_mode' => :'String',
  })
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 162
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      default_regular_font == o.default_regular_font &&
      gradient_style == o.gradient_style &&
      font_fallback_rules == o.font_fallback_rules &&
      font_subst_rules == o.font_subst_rules &&
      format == o.format &&
      height == o.height &&
      width == o.width &&
      compression == o.compression &&
      dpi_x == o.dpi_x &&
      dpi_y == o.dpi_y &&
      show_hidden_slides == o.show_hidden_slides &&
      pixel_format == o.pixel_format &&
      slides_layout_options == o.slides_layout_options &&
      bw_conversion_mode == o.bw_conversion_mode
end
bw_conversion_mode=(bw_conversion_mode) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] bw_conversion_mode Object to be assigned

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 152
def bw_conversion_mode=(bw_conversion_mode)
  validator = EnumAttributeValidator.new('String', ['Default', 'Dithering', 'DitheringFloydSteinberg', 'Auto', 'AutoOtsu', 'Threshold25', 'Threshold50', 'Threshold75'])
  unless validator.valid?(bw_conversion_mode)
    fail ArgumentError, 'invalid value for "bw_conversion_mode", must be one of #{validator.allowable_values}.'
  end
  @bw_conversion_mode = bw_conversion_mode
end
compression=(compression) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] compression Object to be assigned

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 132
def compression=(compression)
  validator = EnumAttributeValidator.new('String', ['Default', 'None', 'CCITT3', 'CCITT4', 'LZW', 'RLE'])
  unless validator.valid?(compression)
    fail ArgumentError, 'invalid value for "compression", must be one of #{validator.allowable_values}.'
  end
  @compression = compression
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 183
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 189
def hash
  [default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 112
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
pixel_format=(pixel_format) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] pixel_format Object to be assigned

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 142
def pixel_format=(pixel_format)
  validator = EnumAttributeValidator.new('String', ['Format1bppIndexed', 'Format4bppIndexed', 'Format8bppIndexed', 'Format24bppRgb', 'Format32bppArgb'])
  unless validator.valid?(pixel_format)
    fail ArgumentError, 'invalid value for "pixel_format", must be one of #{validator.allowable_values}.'
  end
  @pixel_format = pixel_format
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/aspose_slides_cloud/models/tiff_export_options.rb, line 119
def valid?
  return false if !super
  compression_validator = EnumAttributeValidator.new('String', ['Default', 'None', 'CCITT3', 'CCITT4', 'LZW', 'RLE'])
  return false unless compression_validator.valid?(@compression)
  pixel_format_validator = EnumAttributeValidator.new('String', ['Format1bppIndexed', 'Format4bppIndexed', 'Format8bppIndexed', 'Format24bppRgb', 'Format32bppArgb'])
  return false unless pixel_format_validator.valid?(@pixel_format)
  bw_conversion_mode_validator = EnumAttributeValidator.new('String', ['Default', 'Dithering', 'DitheringFloydSteinberg', 'Auto', 'AutoOtsu', 'Threshold25', 'Threshold50', 'Threshold75'])
  return false unless bw_conversion_mode_validator.valid?(@bw_conversion_mode)
  true
end