ImagenImagePlacement.Companion

public static class ImagenImagePlacement.Companion


Summary

Public methods

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

Creates an ImagenImagePlacement that represents a placement in an image described by two coordinates.

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.

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