util
Class Redimencionar

java.lang.Object
  extended by util.Redimencionar

public class Redimencionar
extends java.lang.Object

Classe que trata o redimensinamento das imagens .


Constructor Summary
Redimencionar()
           
 
Method Summary
static java.awt.image.BufferedImage Redimension(java.awt.image.BufferedImage original, int w, int h)
           Redimenciona uma imagem do tipo Buffered Image
static java.awt.image.BufferedImage Redimension(java.lang.String caminho, int w, int h)
           Metodo que redimenciona a imagem passado um caminho como string.
static java.awt.geom.Dimension2D tamanhoProporcional(double x, double y, double maxX, double maxY)
           Este metodo redimenciona a imagem proporcinalemnte para caber na tela.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redimencionar

public Redimencionar()
Method Detail

Redimension

public static java.awt.image.BufferedImage Redimension(java.lang.String caminho,
                                                       int w,
                                                       int h)
                                                throws java.io.IOException

Metodo que redimenciona a imagem passado um caminho como string.

Parameters:
caminho - String do File
w -
h -
Returns:
Throws:
java.io.IOException

Redimension

public static java.awt.image.BufferedImage Redimension(java.awt.image.BufferedImage original,
                                                       int w,
                                                       int h)
                                                throws java.io.IOException

Redimenciona uma imagem do tipo Buffered Image

Parameters:
original -
w -
h -
Returns:
Throws:
java.io.IOException

tamanhoProporcional

public static java.awt.geom.Dimension2D tamanhoProporcional(double x,
                                                            double y,
                                                            double maxX,
                                                            double maxY)

Este metodo redimenciona a imagem proporcinalemnte para caber na tela.

Parameters:
x -
y -
maxX -
maxY -
Returns: