Class PresetWatermark
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The horizontal position of the watermark unless you specify a non-zero value forHorizontalOffset
: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left forHorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.getId()
A unique identifier for the settings for one watermark.The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxHeight
. integer percentage (%): The range of valid values is 0 to 100.The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxWidth
. integer percentage (%): The range of valid values is 0 to 100.A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in eitherMaxWidth
orMaxHeight
without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified forMaxWidth
andMaxHeight
.A value that determines how Elastic Transcoder interprets values that you specified forHorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
: Content:HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.The vertical position of the watermark unless you specify a non-zero value forVerticalOffset
: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.VerticalOffset
int
hashCode()
void
setHorizontalAlign
(String horizontalAlign) The horizontal position of the watermark unless you specify a non-zero value forHorizontalOffset
: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.void
setHorizontalOffset
(String horizontalOffset) The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left forHorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.void
A unique identifier for the settings for one watermark.void
setMaxHeight
(String maxHeight) The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxHeight
. integer percentage (%): The range of valid values is 0 to 100.void
setMaxWidth
(String maxWidth) The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxWidth
. integer percentage (%): The range of valid values is 0 to 100.void
setOpacity
(String opacity) A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.void
setSizingPolicy
(String sizingPolicy) A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in eitherMaxWidth
orMaxHeight
without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified forMaxWidth
andMaxHeight
.void
A value that determines how Elastic Transcoder interprets values that you specified forHorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
: Content:HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.void
setVerticalAlign
(String verticalAlign) The vertical position of the watermark unless you specify a non-zero value forVerticalOffset
: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.void
setVerticalOffset
(String verticalOffset) VerticalOffset
toString()
Returns a string representation of this object; useful for testing and debugging.withHorizontalAlign
(String horizontalAlign) The horizontal position of the watermark unless you specify a non-zero value forHorizontalOffset
: Left: The left edge of the watermark is aligned with the left border of the video. Right: The right edge of the watermark is aligned with the right border of the video. Center: The watermark is centered between the left and right borders.withHorizontalOffset
(String horizontalOffset) The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left forHorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.A unique identifier for the settings for one watermark.withMaxHeight
(String maxHeight) The maximum height of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxHeight
. integer percentage (%): The range of valid values is 0 to 100.withMaxWidth
(String maxWidth) The maximum width of the watermark in one of the following formats: number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value ofMaxWidth
. integer percentage (%): The range of valid values is 0 to 100.withOpacity
(String opacity) A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.withSizingPolicy
(String sizingPolicy) A value that controls scaling of the watermark: Fit: Elastic Transcoder scales the watermark so it matches the value that you specified in eitherMaxWidth
orMaxHeight
without exceeding the other value. Stretch: Elastic Transcoder stretches the watermark to match the values that you specified forMaxWidth
andMaxHeight
.withTarget
(String target) A value that determines how Elastic Transcoder interprets values that you specified forHorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
: Content:HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any.withVerticalAlign
(String verticalAlign) The vertical position of the watermark unless you specify a non-zero value forVerticalOffset
: Top: The top edge of the watermark is aligned with the top border of the video. Bottom: The bottom edge of the watermark is aligned with the bottom border of the video. Center: The watermark is centered between the top and bottom borders.withVerticalOffset
(String verticalOffset) VerticalOffset
-
Constructor Details
-
PresetWatermark
public PresetWatermark()
-
-
Method Details
-
setId
A unique identifier for the settings for one watermark. The value ofId
can be up to 40 characters long.- Parameters:
id
- A unique identifier for the settings for one watermark. The value ofId
can be up to 40 characters long.
-
getId
A unique identifier for the settings for one watermark. The value ofId
can be up to 40 characters long.- Returns:
- A unique identifier for the settings for one watermark. The value
of
Id
can be up to 40 characters long.
-
withId
A unique identifier for the settings for one watermark. The value ofId
can be up to 40 characters long.- Parameters:
id
- A unique identifier for the settings for one watermark. The value ofId
can be up to 40 characters long.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxWidth
The maximum width of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you specify the value in
pixels, it must be less than or equal to the value of
MaxWidth
.- Parameters:
maxWidth
- The maximum width of the watermark in one of the following formats:- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to 100.
Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you
specify the value in pixels, it must be less than or equal to the
value of
MaxWidth
.- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
getMaxWidth
The maximum width of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you specify the value in
pixels, it must be less than or equal to the value of
MaxWidth
.- Returns:
- The maximum width of the watermark in one of the following
formats:
- number of pixels (px): The minimum value is 16 pixels, and
the maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to
100. Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you
specify the value in pixels, it must be less than or equal to the
value of
MaxWidth
. - number of pixels (px): The minimum value is 16 pixels, and
the maximum value is the value of
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
withMaxWidth
The maximum width of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you specify the value in
pixels, it must be less than or equal to the value of
MaxWidth
.- Parameters:
maxWidth
- The maximum width of the watermark in one of the following formats:- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxWidth
. - integer percentage (%): The range of valid values is 0 to 100.
Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you
specify the value in pixels, it must be less than or equal to the
value of
MaxWidth
.- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
setMaxHeight
The maximum height of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
.- Parameters:
maxHeight
- The maximum height of the watermark in one of the following formats:- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
.- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
getMaxHeight
The maximum height of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
.- Returns:
- The maximum height of the watermark in one of the following
formats:
- number of pixels (px): The minimum value is 16 pixels, and
the maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to
100. Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
. - number of pixels (px): The minimum value is 16 pixels, and
the maximum value is the value of
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
withMaxHeight
The maximum height of the watermark in one of the following formats:
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100. Use
the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
.- Parameters:
maxHeight
- The maximum height of the watermark in one of the following formats:- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Use the value of
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation.
MaxHeight
.- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- number of pixels (px): The minimum value is 16 pixels, and the
maximum value is the value of
-
setSizingPolicy
A value that controls scaling of the watermark:
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to match
the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark down so
that its dimensions match the values that you specified for at least one
of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Parameters:
sizingPolicy
- A value that controls scaling of the watermark:- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to
match the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark
down so that its dimensions match the values that you specified
for at least one of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
-
getSizingPolicy
A value that controls scaling of the watermark:
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to match
the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark down so
that its dimensions match the values that you specified for at least one
of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Returns:
- A value that controls scaling of the watermark:
- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to
match the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark
down so that its dimensions match the values that you specified
for at least one of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
-
withSizingPolicy
A value that controls scaling of the watermark:
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to match
the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark down so
that its dimensions match the values that you specified for at least one
of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Parameters:
sizingPolicy
- A value that controls scaling of the watermark:- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
MaxWidth
orMaxHeight
without exceeding the other value. - Stretch: Elastic Transcoder stretches the watermark to
match the values that you specified for
MaxWidth
andMaxHeight
. If the relative proportions of the watermark and the values ofMaxWidth
andMaxHeight
are different, the watermark will be distorted. - ShrinkToFit: Elastic Transcoder scales the watermark
down so that its dimensions match the values that you specified
for at least one of
MaxWidth
andMaxHeight
without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up.
- Fit: Elastic Transcoder scales the watermark so it
matches the value that you specified in either
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- Fit: Elastic Transcoder scales the watermark so it matches the
value that you specified in either
-
setHorizontalAlign
The horizontal position of the watermark unless you specify a non-zero value for
HorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
- Parameters:
horizontalAlign
- The horizontal position of the watermark unless you specify a non-zero value forHorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
-
getHorizontalAlign
The horizontal position of the watermark unless you specify a non-zero value for
HorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
- Returns:
- The horizontal position of the watermark unless you specify a
non-zero value for
HorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
-
withHorizontalAlign
The horizontal position of the watermark unless you specify a non-zero value for
HorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
- Parameters:
horizontalAlign
- The horizontal position of the watermark unless you specify a non-zero value forHorizontalOffset
:- Left: The left edge of the watermark is aligned with the left border of the video.
- Right: The right edge of the watermark is aligned with the right border of the video.
- Center: The watermark is centered between the left and right borders.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHorizontalOffset
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Parameters:
horizontalOffset
- The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.
-
getHorizontalOffset
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Returns:
- The amount by which you want the horizontal position of the
watermark to be offset from the position specified by
HorizontalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.
-
withHorizontalOffset
The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Parameters:
horizontalOffset
- The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:- number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth.
- integer percentage (%): The range of valid values is 0 to 100.
HorizontalAlign
and 5px forHorizontalOffset
, the left side of the watermark appears 5 pixels from the left border of the output video.HorizontalOffset
is only valid when the value ofHorizontalAlign
isLeft
orRight
. If you specify an offset that causes the watermark to extend beyond the left or right 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
Target
to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVerticalAlign
The vertical position of the watermark unless you specify a non-zero value for
VerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
- Parameters:
verticalAlign
- The vertical position of the watermark unless you specify a non-zero value forVerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
-
getVerticalAlign
The vertical position of the watermark unless you specify a non-zero value for
VerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
- Returns:
- The vertical position of the watermark unless you specify a
non-zero value for
VerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
-
withVerticalAlign
The vertical position of the watermark unless you specify a non-zero value for
VerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
- Parameters:
verticalAlign
- The vertical position of the watermark unless you specify a non-zero value forVerticalOffset
:- Top: The top edge of the watermark is aligned with the top border of the video.
- Bottom: The bottom edge of the watermark is aligned with the bottom border of the video.
- Center: The watermark is centered between the top and bottom borders.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVerticalOffset
VerticalOffset
The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Parameters:
verticalOffset
- VerticalOffsetThe amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
-
getVerticalOffset
VerticalOffset
The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Returns:
- VerticalOffset
The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation. - number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
-
withVerticalOffset
VerticalOffset
The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- Parameters:
verticalOffset
- VerticalOffsetThe amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
- number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
MaxHeight
. - integer percentage (%): The range of valid values is 0 to 100.
Top
forVerticalAlign
and5px
forVerticalOffset
, the top of the watermark appears 5 pixels from the top border of the output video.VerticalOffset
is only valid when the value of VerticalAlign is Top or Bottom.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
Target
to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation.- number of pixels (px): The minimum value is 0 pixels, and the
maximum value is the value of
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- number of pixels (px): The minimum value is 0 pixels, and the maximum
value is the value of
-
setOpacity
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.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
Opacity
. The .jpg file format doesn't support transparency.- Parameters:
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 ofOpacity
is float.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
Opacity
. The .jpg file format doesn't support transparency.
-
getOpacity
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.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
Opacity
. The .jpg file format doesn't support transparency.- Returns:
- 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.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
Opacity
. The .jpg file format doesn't support transparency.
-
withOpacity
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.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
Opacity
. The .jpg file format doesn't support transparency.- Parameters:
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 ofOpacity
is float.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
Opacity
. The .jpg file format doesn't support transparency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTarget
A value that determines how Elastic Transcoder interprets values that you specified for
HorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.- Parameters:
target
- A value that determines how Elastic Transcoder interprets values that you specified forHorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.- Content:
- Content:
-
getTarget
A value that determines how Elastic Transcoder interprets values that you specified for
HorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.- Returns:
- A value that determines how Elastic Transcoder interprets values
that you specified for
HorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. - Content:
- Content:
-
withTarget
A value that determines how Elastic Transcoder interprets values that you specified for
HorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.
In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.- Parameters:
target
- A value that determines how Elastic Transcoder interprets values that you specified forHorizontalOffset
,VerticalOffset
,MaxWidth
, andMaxHeight
:- Content:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition,MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. - Frame:
HorizontalOffset
andVerticalOffset
values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. In addition,
MaxWidth
andMaxHeight
, if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any.- Content:
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- Content:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-