Reference documentation and code samples for the Google Cloud Video Transcoder V1beta1 Client class Image.
Overlaid jpeg image.
Generated from protobuf message google.cloud.video.transcoder.v1beta1.Overlay.Image
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ uri
string
Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg
. JPEG is the only supported image type.
↳ resolution
Google\Cloud\Video\Transcoder\V1beta1\Overlay\NormalizedCoordinate
Normalized image resolution, based on output video resolution. Valid values: 0.0
– 1.0
. To respect the original image aspect ratio, set either x
or y
to 0.0
. To use the original image resolution, set both x
and y
to 0.0
.
↳ alpha
float
Target image opacity. Valid values are from 1.0
(solid, default) to 0.0
(transparent), exclusive. Set this to a value greater than 0.0
.
getUri
Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg
. JPEG is the only supported image type.
string
setUri
Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/inputs/image.jpeg
. JPEG is the only supported image type.
var
string
$this
getResolution
Normalized image resolution, based on output video resolution. Valid
values: 0.0
– 1.0
. To respect the original image aspect ratio, set
either x
or y
to 0.0
. To use the original image resolution, set
both x
and y
to 0.0
.
hasResolution
clearResolution
setResolution
Normalized image resolution, based on output video resolution. Valid
values: 0.0
– 1.0
. To respect the original image aspect ratio, set
either x
or y
to 0.0
. To use the original image resolution, set
both x
and y
to 0.0
.
$this
getAlpha
Target image opacity. Valid values are from 1.0
(solid, default) to 0.0
(transparent), exclusive. Set this to a value greater than 0.0
.
float
setAlpha
Target image opacity. Valid values are from 1.0
(solid, default) to 0.0
(transparent), exclusive. Set this to a value greater than 0.0
.
var
float
$this