|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.groupdocs.viewer.handlers.ImageHandler
public class ImageHandler
Provides some image manipulation functionality
Constructor Summary | |
---|---|
ImageHandler()
|
Method Summary | |
---|---|
static void |
addCaption(String imagePath)
Add caption |
static void |
addWatermark(String imagePath,
String watermarkText,
String color)
Add watermark |
static void |
resize(String imagePath,
int width)
Resize image with desired width On resize image ration is kept |
static void |
resize(String originalImagePath,
String newImagePath,
int width)
Resize image with desired width and store it in new location |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageHandler()
Method Detail |
---|
public static void resize(String imagePath, int width) throws Exception
imagePath
- Path to image filewidth
- New width
Exception
public static void resize(String originalImagePath, String newImagePath, int width) throws Exception
originalImagePath
- Path to original imagenewImagePath
- Path to new image locationwidth
- New width
Exception
public static void addWatermark(String imagePath, String watermarkText, String color)
imagePath
- watermarkText
- color
- public static void addCaption(String imagePath)
imagePath
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |