Class: TencentCloud::Mps::V20190612::ImageProcessOutputConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

图片处理编排输出配置。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aspectratio = nil, imageheight = nil, imagewidth = nil, imagesize = nil, format = nil, quality = nil) ⇒ ImageProcessOutputConfig

Returns a new instance of ImageProcessOutputConfig.



17871
17872
17873
17874
17875
17876
17877
17878
# File 'lib/v20190612/models.rb', line 17871

def initialize(aspectratio=nil, imageheight=nil, imagewidth=nil, imagesize=nil, format=nil, quality=nil)
  @AspectRatio = aspectratio
  @ImageHeight = imageheight
  @ImageWidth = imagewidth
  @ImageSize = imagesize
  @Format = format
  @Quality = quality
end

Instance Attribute Details

#AspectRatioObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def AspectRatio
  @AspectRatio
end

#FormatObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def Format
  @Format
end

#ImageHeightObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def ImageHeight
  @ImageHeight
end

#ImageSizeObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def ImageSize
  @ImageSize
end

#ImageWidthObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def ImageWidth
  @ImageWidth
end

#QualityObject

支持该参数 ScheduleId: 30010(扩图)

Parameters:

  • ImageHeight:

    图片输出高度,单位:像素。

  • ImageWidth:

    图片输出宽度,单位:像素。

  • ImageSize:

    图片输出分辨率,取值:1K/2K/4K。

  • Format:

    图片输出编码格式,可取值:PNG、JPG、WEBP、HEIF、AVIF。

  • Quality:

    图片质量,对于某些输出格式可用,只有Format 有效的情况下生效,取值范围 0-100。



17869
17870
17871
# File 'lib/v20190612/models.rb', line 17869

def Quality
  @Quality
end

Instance Method Details

#deserialize(params) ⇒ Object



17880
17881
17882
17883
17884
17885
17886
17887
# File 'lib/v20190612/models.rb', line 17880

def deserialize(params)
  @AspectRatio = params['AspectRatio']
  @ImageHeight = params['ImageHeight']
  @ImageWidth = params['ImageWidth']
  @ImageSize = params['ImageSize']
  @Format = params['Format']
  @Quality = params['Quality']
end