Class: Google::Apis::TranscoderV1::Image

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



1267
1268
1269
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1267

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)


1254
1255
1256
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1254

def alpha
  @alpha
end

#resolutionGoogle::Apis::TranscoderV1::NormalizedCoordinate

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



1259
1260
1261
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1259

def resolution
  @resolution
end

#uriString

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

Returns:

  • (String)


1265
1266
1267
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1265

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1272
1273
1274
1275
1276
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1272

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