static IPromptImageGeometryConverter |
PromptImageGeometryConverters.enlargeCanvasToAspectRatio(double newRatio) |
Changes the canvas size to the new aspect ratio, enlarging the image as needed to fill the canvas.
|
static IPromptImageGeometryConverter |
PromptImageGeometryConverters.fixedSize(int newWidth,
int newHeight) |
Resizes the image to the fixed size.
|
static IPromptImageGeometryConverter |
PromptImageGeometryConverters.resizeCanvas(int newWidth,
int newHeight,
EPromptImageObjectFit objectFit) |
Resizes the canvas to the given dimensions, fitting the image using the specified object fit strategy.
|
static IPromptImageGeometryConverter |
PromptImageGeometryConverters.scale(double scale) |
Scales the image by the given factor.
|
static IPromptImageGeometryConverter |
PromptImageGeometryConverters.stretchToAspectRatio(double newRatio) |
Resizes the image to the new aspect ratio, stretching it either horizontally or vertically as needed.
|