Struct ImageResizeMode
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
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
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
Value
public string Value { get; }
Property Value
Methods
Equals(ImageResizeMode)
public bool Equals(ImageResizeMode other)
Parameters
otherImageResizeMode
Returns
FromString(string)
public static ImageResizeMode FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ImageResizeMode(string)
public static implicit operator ImageResizeMode(string value)
Parameters
valuestring