Package discord4j.core.util
Class ImageUtil
- java.lang.Object
-
- discord4j.core.util.ImageUtil
-
public final class ImageUtil extends Object
An utility class for image processing.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getUrl(String path, Image.Format format)
Gets the URL utilizing a path and theImage.Format
the URL should represent.
-
-
-
Method Detail
-
getUrl
public static String getUrl(String path, Image.Format format)
Gets the URL utilizing a path and theImage.Format
the URL should represent.- Parameters:
path
- The path of the image; excluding the extension. Must be non-null.format
- TheImage.Format
the URL should represent. Must be non-null.- Returns:
- The URL utilizing the path and the
Image.Format
the URL represents.
-
-