Class: Google::Apis::TranscoderV1beta1::Image
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::Image
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
Overlaid jpeg image.
Instance Attribute Summary collapse
-
#alpha ⇒ Float
Target image opacity.
-
#resolution ⇒ Google::Apis::TranscoderV1beta1::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.
668 669 670 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alpha ⇒ Float
Target image opacity. Valid values: 1
(solid, default), 0
(transparent).
Corresponds to the JSON property alpha
655 656 657 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 655 def alpha @alpha end |
#resolution ⇒ Google::Apis::TranscoderV1beta1::NormalizedCoordinate
2D normalized coordinates. Default: 0.0, 0.0
Corresponds to the JSON property resolution
660 661 662 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 660 def resolution @resolution end |
#uri ⇒ String
Required. URI of the image in Cloud Storage. For example, gs://bucket/inputs/
image.jpeg
.
Corresponds to the JSON property uri
666 667 668 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 666 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
673 674 675 676 677 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 673 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 |