Firebase. AI. ImageConfig. AspectRatio
The aspect ratio of generated images.
Summary
Constructors and Destructors |
|
|---|---|
AspectRatio(string value)
Constructs a custom AspectRatio, instead of one of the presets.
|
Properties |
|
|---|---|
Value
|
string
|
Public static attributes |
|
|---|---|
Landscape16x9 = new("16:9")
|
readonly AspectRatio
|
Landscape3x2 = new("3:2")
|
readonly AspectRatio
|
Landscape4x1 = new("4:1")
|
readonly AspectRatio
|
Landscape4x3 = new("4:3")
|
readonly AspectRatio
|
Landscape5x4 = new("5:4")
|
readonly AspectRatio
|
Landscape8x1 = new("8:1")
|
readonly AspectRatio
|
Portrait1x4 = new("1:4")
|
readonly AspectRatio
|
Portrait1x8 = new("1:8")
|
readonly AspectRatio
|
Portrait2x3 = new("2:3")
|
readonly AspectRatio
|
Portrait3x4 = new("3:4")
|
readonly AspectRatio
|
Portrait4x5 = new("4:5")
|
readonly AspectRatio
|
Portrait9x16 = new("9:16")
|
readonly AspectRatio
|
Square1x1 = new("1:1")
|
readonly AspectRatio
|
Ultrawide21x9 = new("21:9")
|
readonly AspectRatio
|
Public functions |
|
|---|---|
ToString()
|
override string
|
Properties
Value
string Firebase::AI::ImageConfig::AspectRatio::Value
Public static attributes
Landscape16x9
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape16x9 = new("16:9")
Landscape3x2
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape3x2 = new("3:2")
Landscape4x1
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape4x1 = new("4:1")
Landscape4x3
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape4x3 = new("4:3")
Landscape5x4
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape5x4 = new("5:4")
Landscape8x1
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Landscape8x1 = new("8:1")
Portrait1x4
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait1x4 = new("1:4")
Portrait1x8
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait1x8 = new("1:8")
Portrait2x3
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait2x3 = new("2:3")
Portrait3x4
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait3x4 = new("3:4")
Portrait4x5
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait4x5 = new("4:5")
Portrait9x16
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Portrait9x16 = new("9:16")
Square1x1
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Square1x1 = new("1:1")
Ultrawide21x9
readonly AspectRatio Firebase::AI::ImageConfig::AspectRatio::Ultrawide21x9 = new("21:9")
Public functions
AspectRatio
Firebase::AI::ImageConfig::AspectRatio::AspectRatio( string value )
Constructs a custom AspectRatio, instead of one of the presets.
Note that the backend model needs to support the requested ratio.
ToString
override string Firebase::AI::ImageConfig::AspectRatio::ToString()