Class: Google::Apis::TranscoderV1beta1::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb

Overview

Overlaid jpeg image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



669
670
671
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 669

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alphaFloat

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

Returns:

  • (Float)


656
657
658
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 656

def alpha
  @alpha
end

#resolutionGoogle::Apis::TranscoderV1beta1::NormalizedCoordinate

2D normalized coordinates. Default: 0.0, 0.0 Corresponds to the JSON property resolution



661
662
663
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 661

def resolution
  @resolution
end

#uriString

Required. URI of the JPEG image in Cloud Storage. For example, gs://bucket/ inputs/image.jpeg. JPEG is the only supported image type. Corresponds to the JSON property uri

Returns:

  • (String)


667
668
669
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 667

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
678
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 674

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