Vertex AI v1 API - Class ImageConfig (3.50.0)

public sealed class ImageConfig : IMessage<ImageConfig>, IEquatable<ImageConfig>, IDeepCloneable<ImageConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1 API class ImageConfig.

Config for image generation features.

Inheritance

object > ImageConfig

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ImageConfig()

public ImageConfig()

ImageConfig(ImageConfig)

public ImageConfig(ImageConfig other)
Parameter
Name Description
other ImageConfig

Properties

AspectRatio

public string AspectRatio { get; set; }

Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported:

"1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9"

Property Value
Type Description
string

HasAspectRatio

public bool HasAspectRatio { get; }

Gets whether the "aspect_ratio" field is set

Property Value
Type Description
bool