public class ImageUtilities
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon |
covertToResizableIcon(java.awt.Image image)
将image转换为可缩放的图片
|
static org.pushingpixels.flamingo.api.common.icon.ResizableIcon |
getSkinIcon(java.lang.Class classImp, java.lang.String iconName)
根据class获取包内图标
|
static org.pushingpixels.flamingo.api.common.icon.ResizableIcon |
getSkinIcon(java.io.File file)
从文件读图片,不考虑缓存,缩放,风格等。
|
static org.pushingpixels.flamingo.api.common.icon.ResizableIcon |
getSkinIcon(java.lang.String iconRelativePath)
从文件路径读取文件
|
public static org.pushingpixels.flamingo.api.common.icon.ResizableIcon getSkinIcon(java.io.File file)
file
- svg文件public static org.pushingpixels.flamingo.api.common.icon.ResizableIcon getSkinIcon(java.lang.String iconRelativePath)
iconRelativePath
- 文件相对路径public static org.pushingpixels.flamingo.api.common.icon.ResizableIcon getSkinIcon(java.lang.Class classImp, java.lang.String iconName)
classImp
- 类iconName
- 图标包内路径public static org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon covertToResizableIcon(java.awt.Image image)