Java Utililty Methods BufferedImage Show

List of utility methods to do BufferedImage Show

Description

The list of methods to do BufferedImage Show are organized into topic(s).

Method

voidshowImageLabel(BufferedImage imagen, JLabel jLabel, JComponent jc)
Muestra una imajen en un JLabel
BufferedImage imagenReducida = resize(imagen, jc.getWidth(), jc.getHeight());
ImageIcon icon = new ImageIcon(imagenReducida);
jLabel.setSize(icon.getIconWidth(), icon.getIconHeight());
jLabel.setIcon(icon);
jLabel.setLocation(jc.getWidth() / 2 - jLabel.getWidth() / 2, jc.getHeight() / 2 - jLabel.getHeight() / 2);