Table of Contents

Struct ImageResizeMode

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Resize mode for the image input for video generation.

[JsonConverter(typeof(ImageResizeModeConverter))]
public readonly record struct ImageResizeMode : IEquatable<ImageResizeMode>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<ImageResizeMode> AllValues { get; }

Property Value

IReadOnlyList<ImageResizeMode>

Crop

Crop the image to fit the correct aspect ratio (so we lose parts of the image in the process).

public static ImageResizeMode Crop { get; }

Property Value

ImageResizeMode

Pad

Pad the image to fit the correct aspect ratio (so we don't lose any parts of the image in the process).

public static ImageResizeMode Pad { get; }

Property Value

ImageResizeMode

Value

public string Value { get; }

Property Value

string

Methods

Equals(ImageResizeMode)

public bool Equals(ImageResizeMode other)

Parameters

other ImageResizeMode

Returns

bool

FromString(string)

public static ImageResizeMode FromString(string value)

Parameters

value string

Returns

ImageResizeMode

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ImageResizeMode(string)

public static implicit operator ImageResizeMode(string value)

Parameters

value string

Returns

ImageResizeMode