org.eclipse.actf.ui.util
Class ImageUtil
java.lang.Object
org.eclipse.actf.ui.util.ImageUtil
public class ImageUtil
- extends Object
Utility class to save Image
into file.
Method Summary |
static boolean |
saveImageToFile(org.eclipse.swt.graphics.Image image,
String savePath,
int format)
Save target Image to file. |
ImageUtil
public ImageUtil()
saveImageToFile
public static boolean saveImageToFile(org.eclipse.swt.graphics.Image image,
String savePath,
int format)
- Save target
Image
to file.
- Parameters:
image
- target Image to savesavePath
- target path in String formatformat
- this parameter can have one of the format type defined at
SWT
- Returns:
- true if succeeded
- See Also:
ImageLoader.save(java.io.OutputStream, int)