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 StringgetUrl(String path, Image.Format format)Gets the URL utilizing a path and theImage.Formatthe URL should represent.
-
-
-
Method Detail
-
getUrl
public static String getUrl(String path, Image.Format format)
Gets the URL utilizing a path and theImage.Formatthe URL should represent.- Parameters:
path- The path of the image; excluding the extension. Must be non-null.format- TheImage.Formatthe URL should represent. Must be non-null.- Returns:
- The URL utilizing the path and the
Image.Formatthe URL represents.
-
-