com.notuvy.image
Class ScaledImage
java.lang.Object
com.notuvy.image.ScaledImage
public class ScaledImage
- extends Object
A utility to create resized image from an original image.
Currently it supports only shrinking, not enlarging.
- Version:
- $Id: ScaledImage.java,v 1.2 2006/06/22 04:56:29 murali Exp $
- Author:
- murali
FORMAT
protected static final DecimalFormat FORMAT
ScaledImage
public ScaledImage(BufferedImage pOriginal,
int pMaxDimension)
getOriginal
protected BufferedImage getOriginal()
getMaxDimension
protected int getMaxDimension()
getImage
public BufferedImage getImage()
getOrigWidth
protected int getOrigWidth()
getOrigHeight
protected int getOrigHeight()
getNewWidth
protected int getNewWidth()
getNewHeight
protected int getNewHeight()
getScale
protected double getScale()
setImage
public void setImage(BufferedImage pImage)
initialize
protected void initialize()
adjustWidth
protected void adjustWidth()
adjustHeight
protected void adjustHeight()
initializeOriginal
protected void initializeOriginal(BufferedImage pOriginal)
toString
public String toString()
- Overrides:
toString
in class Object
clear
public void clear()
Copyright © 2013. All Rights Reserved.