Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.util
Class AvatarImageUtils

java.lang.Object
  extended by com.jivesoftware.forum.util.AvatarImageUtils

public final class AvatarImageUtils
extends java.lang.Object

Utilties for image manipulation and caching


Method Summary
static java.io.File getImageCacheFile(java.lang.String filename)
          Returns a file handle to a cached image folder.
static java.awt.image.BufferedImage resizeImage(float wScale, float hScale, java.awt.image.BufferedImage bufferedImage)
          Scales a buffered image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resizeImage

public static java.awt.image.BufferedImage resizeImage(float wScale,
                                                       float hScale,
                                                       java.awt.image.BufferedImage bufferedImage)
Scales a buffered image.

Parameters:
wScale - width scale
hScale - height scale
bufferedImage - image to scale.
Returns:
The scaled image.

getImageCacheFile

public static java.io.File getImageCacheFile(java.lang.String filename)
Returns a file handle to a cached image folder. The file may not have been created.

Parameters:
filename - The name of the file
Returns:
A File handle to a file under the cache image folder.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.