ImagenAspectRatio

@PublicPreviewAPI
public final class ImagenAspectRatio


Represents the aspect ratio that the generated image should conform to.

Summary

Nested types

public static class ImagenAspectRatio.Companion

Public fields

static final @NonNull ImagenAspectRatio

A landscape image in 16:9, the aspect ratio of modern monitors and phone screens.

static final @NonNull ImagenAspectRatio

A landscape image in 4:3, the aspect ratio of older TVs.

static final @NonNull ImagenAspectRatio

A portrait image in 3:4, the aspect ratio of older TVs.

static final @NonNull ImagenAspectRatio

A portrait image in 9:16, the aspect ratio of modern monitors and phone screens.

static final @NonNull ImagenAspectRatio

A square image, useful for icons, profile pictures, etc.

Public fields

LANDSCAPE_16x9

public static final @NonNull ImagenAspectRatio LANDSCAPE_16x9

A landscape image in 16:9, the aspect ratio of modern monitors and phone screens.

LANDSCAPE_4x3

public static final @NonNull ImagenAspectRatio LANDSCAPE_4x3

A landscape image in 4:3, the aspect ratio of older TVs.

PORTRAIT_3x4

public static final @NonNull ImagenAspectRatio PORTRAIT_3x4

A portrait image in 3:4, the aspect ratio of older TVs.

PORTRAIT_9x16

public static final @NonNull ImagenAspectRatio PORTRAIT_9x16

A portrait image in 9:16, the aspect ratio of modern monitors and phone screens.

SQUARE_1x1

public static final @NonNull ImagenAspectRatio SQUARE_1x1

A square image, useful for icons, profile pictures, etc.