List of utility methods to do BufferedImage Show
void | showImageLabel(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);
|