de.uplanet.lucy.server.auxiliaries
Class Thumbnail

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.Thumbnail

@VelocityCallable(value="singleton")
public final class Thumbnail
extends java.lang.Object

Thumbnail.java Load an image, scale it down and save it as a JPEG file. Supported file formats are: JPEG, PNG


Constructor Summary
Thumbnail()
           
 
Method Summary
 boolean checkFolderPath(java.lang.String p_strPath)
           
 int countFiles(java.lang.String p_strPath)
           
 void createThumbnail(java.io.File p_fileImg, int p_iXRes, int p_iYRes, int p_iQuality)
           
 java.util.Iterator<java.io.File> getFileListIterator(java.lang.String p_strPath)
           
 void scaleImg(java.io.File p_fileImg, int p_iXRes, int p_iYRes, int p_iQuality)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thumbnail

public Thumbnail()
Method Detail

getFileListIterator

public java.util.Iterator<java.io.File> getFileListIterator(java.lang.String p_strPath)

scaleImg

public void scaleImg(java.io.File p_fileImg,
                     int p_iXRes,
                     int p_iYRes,
                     int p_iQuality)

createThumbnail

public void createThumbnail(java.io.File p_fileImg,
                            int p_iXRes,
                            int p_iYRes,
                            int p_iQuality)

checkFolderPath

public boolean checkFolderPath(java.lang.String p_strPath)

countFiles

public int countFiles(java.lang.String p_strPath)


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.