Class: Google::Apis::TranscoderV1::Image
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
Overlaid image.
Instance Attribute Summary collapse
-
#alpha ⇒ Float
Target image opacity.
-
#resolution ⇒ Google::Apis::TranscoderV1::NormalizedCoordinate
2D normalized coordinates.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Image
constructor
A new instance of Image.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image.
1018 1019 1020 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1018 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property alpha
1005 1006 1007 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1005 def alpha @alpha end |
#resolution ⇒ Google::Apis::TranscoderV1::NormalizedCoordinate
2D normalized coordinates. Default: 0.0, 0.0
Corresponds to the JSON property resolution
1010 1011 1012 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1010 def resolution @resolution end |
#uri ⇒ String
Required. URI of the image in Cloud Storage. For example, gs://bucket/inputs/
image.png. Only PNG and JPEG images are supported.
Corresponds to the JSON property uri
1016 1017 1018 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1016 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1023 1024 1025 1026 1027 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1023 def update!(**args) @alpha = args[:alpha] if args.key?(:alpha) @resolution = args[:resolution] if args.key?(:resolution) @uri = args[:uri] if args.key?(:uri) end |