Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::Overlay::Image.
Overlaid image.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#alpha
def alpha() -> ::Float
Returns
-
(::Float) — Target image opacity. Valid values are from
1.0
(solid, default) to0.0
(transparent), exclusive. Set this to a value greater than0.0
.
#alpha=
def alpha=(value) -> ::Float
Parameter
-
value (::Float) — Target image opacity. Valid values are from
1.0
(solid, default) to0.0
(transparent), exclusive. Set this to a value greater than0.0
.
Returns
-
(::Float) — Target image opacity. Valid values are from
1.0
(solid, default) to0.0
(transparent), exclusive. Set this to a value greater than0.0
.
#resolution
def resolution() -> ::Google::Cloud::Video::Transcoder::V1::Overlay::NormalizedCoordinate
Returns
-
(::Google::Cloud::Video::Transcoder::V1::Overlay::NormalizedCoordinate) — Normalized image resolution, based on output video resolution. Valid
values:
0.0
–1.0
. To respect the original image aspect ratio, set eitherx
ory
to0.0
. To use the original image resolution, set bothx
andy
to0.0
.
#resolution=
def resolution=(value) -> ::Google::Cloud::Video::Transcoder::V1::Overlay::NormalizedCoordinate
Parameter
-
value (::Google::Cloud::Video::Transcoder::V1::Overlay::NormalizedCoordinate) — Normalized image resolution, based on output video resolution. Valid
values:
0.0
–1.0
. To respect the original image aspect ratio, set eitherx
ory
to0.0
. To use the original image resolution, set bothx
andy
to0.0
.
Returns
-
(::Google::Cloud::Video::Transcoder::V1::Overlay::NormalizedCoordinate) — Normalized image resolution, based on output video resolution. Valid
values:
0.0
–1.0
. To respect the original image aspect ratio, set eitherx
ory
to0.0
. To use the original image resolution, set bothx
andy
to0.0
.
#uri
def uri() -> ::String
Returns
-
(::String) — Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
#uri=
def uri=(value) -> ::String
Parameter
-
value (::String) — Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.
Returns
-
(::String) — Required. URI of the image in Cloud Storage. For example,
gs://bucket/inputs/image.png
. Only PNG and JPEG images are supported.