Interface IPromptImageInfo
-
public interface IPromptImageInfoRepresents metadata of an image, such as its size or format.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringextension()The suggested file extension of the image, without a leading dot, e.g.Stringformat()The format of the image, e.g.intheight()The height of the image.StringmimeType()The MIME type of the image.intwidth()The width of the image.
-
-
-
Method Detail
-
extension
String extension()
The suggested file extension of the image, without a leading dot, e.g. "png" or "jpg".- Returns:
- The file extension as a string.
-
format
String format()
The format of the image, e.g. "png" or "jpeg". SeeIPromptImageConvertBuilder.format(IPromptImageFormatConverter).- Returns:
- The format as a string.
-
height
int height()
The height of the image.- Returns:
- The height in pixels.
-
mimeType
String mimeType()
The MIME type of the image.- Returns:
- The MIME type as a string.
-
width
int width()
The width of the image.- Returns:
- The width in pixels.
-
-