Uses of Interface
de.xima.fc.prompt.service.support.IPromptImageGeometryConverter
Packages that use IPromptImageGeometryConverter
Package
Description
The prompt API is kept intentionally low-level to support a wide range of use cases.
-
Uses of IPromptImageGeometryConverter in de.xima.fc.prompt.service.support
Methods in de.xima.fc.prompt.service.support that return IPromptImageGeometryConverterModifier and TypeMethodDescriptionPromptImageGeometryConverters.enlargeCanvasToAspectRatio(double newRatio) Changes the canvas size to the new aspect ratio, enlarging the image as needed to fill the canvas.PromptImageGeometryConverters.fixedSize(int newWidth, int newHeight) Resizes the image to the fixed size.PromptImageGeometryConverters.resizeCanvas(int newWidth, int newHeight, EPromptImageObjectFit objectFit) Resizes the canvas to the given dimensions, fitting the image using the specified object fit strategy.PromptImageGeometryConverters.scale(double scale) Scales the image by the given factor.PromptImageGeometryConverters.stretchToAspectRatio(double newRatio) Resizes the image to the new aspect ratio, stretching it either horizontally or vertically as needed.Methods in de.xima.fc.prompt.service.support with parameters of type IPromptImageGeometryConverterModifier and TypeMethodDescriptionIPromptImageConvertBuilder.geometry(IPromptImageGeometryConverter converter) Changes the geometry of the image using the given converter.