PresetWatermark class

Settings for the size, location, and opacity of graphics that you want Elastic Transcoder to overlay over videos that are transcoded using this preset. You can specify settings for up to four watermarks. Watermarks appear in the specified size and location, and with the specified opacity for the duration of the transcoded video.

Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency.

When you create a job that uses this preset, you specify the .png or .jpg graphics that you want Elastic Transcoder to include in the transcoded videos. You can specify fewer graphics in the job than you specify watermark settings in the preset, which allows you to use the same preset for up to four watermarks that have different dimensions.

Constructors

PresetWatermark({String? horizontalAlign, String? horizontalOffset, String? id, String? maxHeight, String? maxWidth, String? opacity, String? sizingPolicy, String? target, String? verticalAlign, String? verticalOffset})
PresetWatermark.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
horizontalAlign String?
The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:
final
horizontalOffset String?
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
final
id String?
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.
final
maxHeight String?
The maximum height of the watermark in one of the following formats:
final
maxWidth String?
The maximum width of the watermark in one of the following formats:
final
opacity String?
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizingPolicy String?
A value that controls scaling of the watermark:
final
target String?
A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
final
verticalAlign String?
The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:
final
verticalOffset String?
VerticalOffset
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited