ImageSize Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The desired size of generated images.
public readonly struct ImageSize : IEquatable<Azure.AI.OpenAI.ImageSize>
type ImageSize = struct
Public Structure ImageSize
Implements IEquatable(Of ImageSize)
- Inheritance
-
ImageSize
- Implements
Constructors
ImageSize(String) |
Initializes a new instance of ImageSize. |
Properties
Size1024x1024 |
A standard, square image size of 1024x1024 pixels. Supported by both dall-e-2 and dall-e-3 models. |
Size1024x1792 |
A taller image size of 1792x1024 pixels. Only supported with dall-e-3 models. |
Size1792x1024 |
A wider image size of 1024x1792 pixels. Only supported with dall-e-3 models. |
Size256x256 |
Very small image size of 256x256 pixels. Only supported with dall-e-2 models. |
Size512x512 |
A smaller image size of 512x512 pixels. Only supported with dall-e-2 models. |
Methods
Equals(ImageSize) |
Indicates whether the current object is equal to another object of the same type. |
ToString() |
Returns the fully qualified type name of this instance. |
Operators
Equality(ImageSize, ImageSize) |
Determines if two ImageSize values are the same. |
Implicit(String to ImageSize) |
Converts a string to a ImageSize. |
Inequality(ImageSize, ImageSize) |
Determines if two ImageSize values are not the same. |
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for