AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
Namespace: Amazon.ElasticTranscoder.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class PresetWatermark : Object
The PresetWatermark type exposes the following members
Name | Description | |
---|---|---|
PresetWatermark() |
Name | Type | Description | |
---|---|---|---|
HorizontalAlign | System.String |
Gets and sets the property HorizontalAlign.
The horizontal position of the watermark unless you specify a non-zero value for
|
|
HorizontalOffset | System.String |
Gets and sets the property HorizontalOffset.
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
HorizontalAlign and 5px for HorizontalOffset ,
the left side of the watermark appears 5 pixels from the left border of the output
video.
Use the value of |
|
Id | System.String |
Gets and sets the property Id. A unique identifier for the settings for one watermark.
The value of Id can be up to 40 characters long.
|
|
MaxHeight | System.String |
Gets and sets the property MaxHeight.
The maximum height of the watermark in one of the following formats:
MaxHeight .
|
|
MaxWidth | System.String |
Gets and sets the property MaxWidth.
The maximum width of the watermark in one of the following formats:
MaxWidth . |
|
Opacity | System.String |
Gets and sets the property Opacity.
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
Elastic Transcoder supports transparent .png graphics. If you use a transparent .png,
the transparent portion of the video appears as if you had specified a value of 0
for |
|
SizingPolicy | System.String |
Gets and sets the property SizingPolicy.
A value that controls scaling of the watermark:
|
|
Target | System.String |
Gets and sets the property Target.
A value that determines how Elastic Transcoder interprets values that you specified
for
MaxWidth and MaxHeight ,
if specified as a percentage, are calculated based on the borders of the video including
black bars added by Elastic Transcoder, if any. |
|
VerticalAlign | System.String |
Gets and sets the property VerticalAlign.
The vertical position of the watermark unless you specify a non-zero value for
|
|
VerticalOffset | System.String |
Gets and sets the property VerticalOffset. VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
Top for VerticalAlign and 5px
for VerticalOffset , the top of the watermark appears 5 pixels from the
top border of the output video.
If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped.
Use the value of |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1