ImagenImagePlacement.Companion

public static class ImagenImagePlacement.Companion


Summary

Public methods

static final @NonNull ImagenImagePlacement
fromCoordinate(int x, int y)

This method is deprecated. All Imagen models are deprecated.

Public methods

fromCoordinate

public static final @NonNull ImagenImagePlacement fromCoordinate(int x, int y)

Creates an ImagenImagePlacement that represents a placement in an image described by two coordinates. The coordinate system has 0,0 in the top left corner, and the x and y coordinates represent the location of the top left corner of the original image.

Deprecation Notice: All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the 'Nano Banana' models)

Parameters
int x

the x coordinate of the top left corner of the original image

int y

the y coordinate of the top left corner of the original image