Class ModifyImageSpriteTemplateRequest


  • public class ModifyImageSpriteTemplateRequest
    extends AbstractModel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Long getColumnCount()
      Get 雪碧图中小图的列数。
      String getComment()
      Get 模板描述信息,长度限制:256 个字符。
      Long getDefinition()
      Get 雪碧图模板唯一标识。
      String getFillType()
      Get 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“; black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。 默认值:black 。
      String getFormat()
      Get 图片格式,取值可以为 jpg、png、webp。
      Long getHeight()
      Get 雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 当 Width、Height 均为 0,则分辨率同源; 当 Width 为 0,Height 非 0,则 Width 按比例缩放; 当 Width 非 0,Height 为 0,则 Height 按比例缩放; 当 Width、Height 均非 0,则分辨率按用户指定。 默认值:0。
      String getName()
      Get 雪碧图模板名称,长度限制:64 个字符。
      String getResolutionAdaptive()
      Get 分辨率自适应,可选值: open:开启,此时,Width 代表视频的长边,Height 表示视频的短边; close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。 默认值:open。
      Long getRowCount()
      Get 雪碧图中小图的行数。
      Long getSampleInterval()
      Get 采样间隔。 当 SampleType 为 Percent 时,指定采样间隔的百分比。 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
      String getSampleType()
      Get 采样类型,取值: Percent:按百分比。 Time:按时间间隔。
      Long getWidth()
      Get 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 当 Width、Height 均为 0,则分辨率同源; 当 Width 为 0,Height 非 0,则 Width 按比例缩放; 当 Width 非 0,Height 为 0,则 Height 按比例缩放; 当 Width、Height 均非 0,则分辨率按用户指定。 默认值:0。
      void setColumnCount​(Long ColumnCount)
      Set 雪碧图中小图的列数。
      void setComment​(String Comment)
      Set 模板描述信息,长度限制:256 个字符。
      void setDefinition​(Long Definition)
      Set 雪碧图模板唯一标识。
      void setFillType​(String FillType)
      Set 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“; black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。 默认值:black 。
      void setFormat​(String Format)
      Set 图片格式,取值可以为 jpg、png、webp。
      void setHeight​(Long Height)
      Set 雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 当 Width、Height 均为 0,则分辨率同源; 当 Width 为 0,Height 非 0,则 Width 按比例缩放; 当 Width 非 0,Height 为 0,则 Height 按比例缩放; 当 Width、Height 均非 0,则分辨率按用户指定。 默认值:0。
      void setName​(String Name)
      Set 雪碧图模板名称,长度限制:64 个字符。
      void setResolutionAdaptive​(String ResolutionAdaptive)
      Set 分辨率自适应,可选值: open:开启,此时,Width 代表视频的长边,Height 表示视频的短边; close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。 默认值:open。
      void setRowCount​(Long RowCount)
      Set 雪碧图中小图的行数。
      void setSampleInterval​(Long SampleInterval)
      Set 采样间隔。 当 SampleType 为 Percent 时,指定采样间隔的百分比。 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
      void setSampleType​(String SampleType)
      Set 采样类型,取值: Percent:按百分比。 Time:按时间间隔。
      void setWidth​(Long Width)
      Set 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 当 Width、Height 均为 0,则分辨率同源; 当 Width 为 0,Height 非 0,则 Width 按比例缩放; 当 Width 非 0,Height 为 0,则 Height 按比例缩放; 当 Width、Height 均非 0,则分辨率按用户指定。 默认值:0。
      void toMap​(HashMap<String,​String> map, String prefix)
      Internal implementation, normal users should not use it.
    • Constructor Detail

      • ModifyImageSpriteTemplateRequest

        public ModifyImageSpriteTemplateRequest()
      • ModifyImageSpriteTemplateRequest

        public ModifyImageSpriteTemplateRequest​(ModifyImageSpriteTemplateRequest source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getDefinition

        public Long getDefinition()
        Get 雪碧图模板唯一标识。
        Returns:
        Definition 雪碧图模板唯一标识。
      • setDefinition

        public void setDefinition​(Long Definition)
        Set 雪碧图模板唯一标识。
        Parameters:
        Definition - 雪碧图模板唯一标识。
      • getName

        public String getName()
        Get 雪碧图模板名称,长度限制:64 个字符。
        Returns:
        Name 雪碧图模板名称,长度限制:64 个字符。
      • setName

        public void setName​(String Name)
        Set 雪碧图模板名称,长度限制:64 个字符。
        Parameters:
        Name - 雪碧图模板名称,长度限制:64 个字符。
      • getWidth

        public Long getWidth()
        Get 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
      • 当 Width、Height 均为 0,则分辨率同源;
      • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
      • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
      • 当 Width、Height 均非 0,则分辨率按用户指定。
      • 默认值:0。
Returns:
Width 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
    Parameters:
    Width - 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。