|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object egovframework.rfc3.common.util.ImageUtil
public class ImageUtil
Constructor Summary | |
---|---|
ImageUtil()
|
Method Summary | |
---|---|
static java.awt.image.BufferedImage |
adjustScale(java.awt.image.BufferedImage image,
java.awt.Dimension dim)
|
static java.awt.image.BufferedImage |
adjustScale(java.awt.image.BufferedImage image,
int maxDim)
|
static java.awt.image.BufferedImage |
adjustScale(java.awt.image.BufferedImage image,
int maxDim,
boolean isFitting)
|
static java.awt.image.BufferedImage |
adjustScaleFit(java.awt.image.BufferedImage image,
java.awt.Dimension dim)
|
static java.awt.image.BufferedImage |
applyTransparency(java.awt.image.BufferedImage image,
java.awt.Image mask)
|
static java.awt.image.BufferedImage |
applyTransparencyThumbnail(java.awt.image.BufferedImage image,
java.awt.Image mask)
|
static boolean |
convert(java.lang.String magicLocation,
java.lang.String magicOption,
java.lang.String in,
java.lang.String out)
본 메소드는 Runtime.exec() 메소드를 사용하여, 사전에 설치된 ImageMagick를 사용할 수 있음. |
static boolean |
convertFromCmykToRgb(java.lang.String magicLocation,
java.lang.String in,
java.lang.String out)
Cmyk 이미지를 Rgb로 변환하기 |
static void |
createImage(java.lang.String loadfile,
java.lang.String savefile,
int width,
int height,
boolean border,
java.lang.String bdColor)
|
static boolean |
exec(java.lang.String command)
status가 0이 아니거나, true를 반환하면 예외가 발생하며 해당 메소드를 종료한다. |
static boolean |
getDecoderCheck(java.lang.String filename)
|
static java.lang.String |
getFileType(java.io.File file)
이미지 파일 포맷 방식 |
static javax.imageio.ImageWriter |
getWriter(java.lang.String file)
|
static java.lang.String |
tramsformImgTag(java.lang.String src,
java.lang.String value)
이미지 태그에 속성 추가 [2010-06-18 : 원서형] |
static java.awt.Image |
transformGrayToTransparency(java.awt.image.BufferedImage image)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageUtil()
Method Detail |
---|
public static javax.imageio.ImageWriter getWriter(java.lang.String file)
public static java.awt.Image transformGrayToTransparency(java.awt.image.BufferedImage image)
public static java.awt.image.BufferedImage applyTransparencyThumbnail(java.awt.image.BufferedImage image, java.awt.Image mask)
public static java.awt.image.BufferedImage adjustScale(java.awt.image.BufferedImage image, int maxDim)
public static java.awt.image.BufferedImage adjustScale(java.awt.image.BufferedImage image, int maxDim, boolean isFitting)
public static java.awt.image.BufferedImage adjustScale(java.awt.image.BufferedImage image, java.awt.Dimension dim)
public static java.awt.image.BufferedImage adjustScaleFit(java.awt.image.BufferedImage image, java.awt.Dimension dim)
public static java.awt.image.BufferedImage applyTransparency(java.awt.image.BufferedImage image, java.awt.Image mask)
public static void createImage(java.lang.String loadfile, java.lang.String savefile, int width, int height, boolean border, java.lang.String bdColor) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static boolean getDecoderCheck(java.lang.String filename)
public static boolean convert(java.lang.String magicLocation, java.lang.String magicOption, java.lang.String in, java.lang.String out)
magicLocation
- - imageMagic이 설치된 전제 경로magicOption
- imageMagic 옵션in
- - 원본 파일명out
- - 썸네일 파일명public static boolean convertFromCmykToRgb(java.lang.String magicLocation, java.lang.String in, java.lang.String out)
magicLocation
- in
- out
-
public static boolean exec(java.lang.String command)
만들어진
- command 명령어를 실행.command
- 명령어 실행 에러가 나면 -1을 반환.public static java.lang.String getFileType(java.io.File file)
file
-
public static java.lang.String tramsformImgTag(java.lang.String src, java.lang.String value)
src
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |