public class PresetWatermark
extends java.lang.Object
implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
PresetWatermark() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
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. |
java.lang.String |
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.
|
java.lang.String |
getId()
A unique identifier for the settings for one watermark.
|
java.lang.String |
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. |
java.lang.String |
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. |
java.lang.String |
getOpacity()
A percentage that indicates how much you want a watermark to obscure
the video in the location where it appears.
|
java.lang.String |
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 or
MaxHeight without exceeding the other value. |
java.lang.String |
getTarget()
A value that determines how Elastic Transcoder interprets values that
you specified for
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: Content:
HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. |
java.lang.String |
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. |
java.lang.String |
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. |
int |
hashCode() |
void |
setHorizontalAlign(java.lang.String horizontalAlign)
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. |
void |
setHorizontalOffset(java.lang.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.
|
void |
setId(java.lang.String id)
A unique identifier for the settings for one watermark.
|
void |
setMaxHeight(java.lang.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 of
MaxHeight. |
void |
setMaxWidth(java.lang.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 of
MaxWidth. |
void |
setOpacity(java.lang.String opacity)
A percentage that indicates how much you want a watermark to obscure
the video in the location where it appears.
|
void |
setSizingPolicy(java.lang.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 either
MaxWidth or
MaxHeight without exceeding the other value. |
void |
setTarget(java.lang.String target)
A value that determines how Elastic Transcoder interprets values that
you specified for
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: Content:
HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. |
void |
setVerticalAlign(java.lang.String verticalAlign)
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. |
void |
setVerticalOffset(java.lang.String verticalOffset)
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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PresetWatermark |
withHorizontalAlign(java.lang.String horizontalAlign)
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. |
PresetWatermark |
withHorizontalOffset(java.lang.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.
|
PresetWatermark |
withId(java.lang.String id)
A unique identifier for the settings for one watermark.
|
PresetWatermark |
withMaxHeight(java.lang.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 of
MaxHeight. |
PresetWatermark |
withMaxWidth(java.lang.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 of
MaxWidth. |
PresetWatermark |
withOpacity(java.lang.String opacity)
A percentage that indicates how much you want a watermark to obscure
the video in the location where it appears.
|
PresetWatermark |
withSizingPolicy(java.lang.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 either
MaxWidth or
MaxHeight without exceeding the other value. |
PresetWatermark |
withTarget(java.lang.String target)
A value that determines how Elastic Transcoder interprets values that
you specified for
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: Content:
HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. |
PresetWatermark |
withVerticalAlign(java.lang.String verticalAlign)
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. |
PresetWatermark |
withVerticalOffset(java.lang.String verticalOffset)
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. |
public java.lang.String getId()
Id can be up to 40 characters long.
Constraints:
Length: 1 - 40
Id can be up to 40 characters long.public void setId(java.lang.String id)
Id can be up to 40 characters long.
Constraints:
Length: 1 - 40
id - A unique identifier for the settings for one watermark. The value of
Id can be up to 40 characters long.public PresetWatermark withId(java.lang.String id)
Id can be up to 40 characters long.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 40
id - A unique identifier for the settings for one watermark. The value of
Id can be up to 40 characters long.public java.lang.String getMaxWidth()
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.public void setMaxWidth(java.lang.String maxWidth)
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
maxWidth - The maximum width of the watermark in one of the following formats:
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.public PresetWatermark withMaxWidth(java.lang.String maxWidth)
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
maxWidth - The maximum width of the watermark in one of the following formats:
MaxWidth.Target to specify whether you want Elastic
Transcoder to include the black bars that are added by Elastic
Transcoder, if any, in the calculation.MaxWidth.public java.lang.String getMaxHeight()
MaxHeight.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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
MaxHeight.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.public void setMaxHeight(java.lang.String maxHeight)
MaxHeight.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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
maxHeight - The maximum height of the watermark in one of the following formats:
MaxHeight.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.public PresetWatermark withMaxHeight(java.lang.String maxHeight)
MaxHeight.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 a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
maxHeight - The maximum height of the watermark in one of the following formats:
MaxHeight.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.public java.lang.String getSizingPolicy()
MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.
Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)
MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.public void setSizingPolicy(java.lang.String sizingPolicy)
MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.
Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)
sizingPolicy - A value that controls scaling of the watermark: MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.public PresetWatermark withSizingPolicy(java.lang.String sizingPolicy)
MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Fit$)|(^Stretch$)|(^ShrinkToFit$)
sizingPolicy - A value that controls scaling of the watermark: MaxWidth or
MaxHeight without exceeding the other value.MaxWidth and
MaxHeight. If the relative proportions of the watermark
and the values of MaxWidth and MaxHeight are
different, the watermark will be distorted.MaxWidth and MaxHeight without
exceeding either value. If you specify this option, Elastic Transcoder
does not scale the watermark up.public java.lang.String getHorizontalAlign()
HorizontalOffset:
Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)
HorizontalOffset: public void setHorizontalAlign(java.lang.String horizontalAlign)
HorizontalOffset:
Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)
horizontalAlign - The horizontal position of the watermark unless you specify a non-zero
value for HorizontalOffset: public PresetWatermark withHorizontalAlign(java.lang.String horizontalAlign)
HorizontalOffset: Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Left$)|(^Right$)|(^Center$)
horizontalAlign - The horizontal position of the watermark unless you specify a non-zero
value for HorizontalOffset: public java.lang.String getHorizontalOffset()
HorizontalAlign and 5px for
HorizontalOffset, the left side of the watermark appears
5 pixels from the left border of the output video.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
HorizontalAlign and 5px for
HorizontalOffset, the left side of the watermark appears
5 pixels from the left border of the output video.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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.
public void setHorizontalOffset(java.lang.String horizontalOffset)
HorizontalAlign and 5px for
HorizontalOffset, the left side of the watermark appears
5 pixels from the left border of the output video.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
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.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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.
public PresetWatermark withHorizontalOffset(java.lang.String horizontalOffset)
HorizontalAlign and 5px for
HorizontalOffset, the left side of the watermark appears
5 pixels from the left border of the output video.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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 a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
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.
HorizontalOffset is only valid when the value of
HorizontalAlign is Left or
Right. 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.
public java.lang.String getVerticalAlign()
VerticalOffset:
Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)
VerticalOffset: public void setVerticalAlign(java.lang.String verticalAlign)
VerticalOffset:
Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)
verticalAlign - The vertical position of the watermark unless you specify a non-zero
value for VerticalOffset: public PresetWatermark withVerticalAlign(java.lang.String verticalAlign)
VerticalOffset: Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Top$)|(^Bottom$)|(^Center$)
verticalAlign - The vertical position of the watermark unless you specify a non-zero
value for VerticalOffset: public java.lang.String getVerticalOffset()
VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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.
public void setVerticalOffset(java.lang.String verticalOffset)
VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
verticalOffset - VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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.
public PresetWatermark withVerticalOffset(java.lang.String verticalOffset)
VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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 a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^\d{1,3}([.]\d{0,5})?%$)|(^\d{2,4}?px$)
verticalOffset - VerticalOffset The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign:
MaxHeight.Top for VerticalAlign and 5px
for VerticalOffset, 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.
public java.lang.String getOpacity()
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.
Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$
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.
public void setOpacity(java.lang.String opacity)
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.
Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$
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 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.
public PresetWatermark withOpacity(java.lang.String opacity)
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 reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^\d{1,3}([.]\d{0,20})?$
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 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.
public java.lang.String getTarget()
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.
Constraints:
Pattern: (^Content$)|(^Frame$)
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.public void setTarget(java.lang.String target)
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.
Constraints:
Pattern: (^Content$)|(^Frame$)
target - A value that determines how Elastic Transcoder interprets values that
you specified for HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.public PresetWatermark withTarget(java.lang.String target)
HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Content$)|(^Frame$)
target - A value that determines how Elastic Transcoder interprets values that
you specified for HorizontalOffset,
VerticalOffset, MaxWidth, and
MaxHeight: HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video excluding black bars
added by Elastic Transcoder, if any. In addition,
MaxWidth and MaxHeight, if specified as a
percentage, are calculated based on the borders of the video excluding
black bars added by Elastic Transcoder, if any.HorizontalOffset and VerticalOffset values
are calculated based on the borders of the video including black bars
added by Elastic Transcoder, if any.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.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object