Java Image getHeight(Image imagen)

Here you can find the source of getHeight(Image imagen)

Description

Obtiene el alto de una Image

License

Open Source License

Declaration

public static int getHeight(Image imagen) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.*;

import javax.swing.*;

public class Main {
    /**/*from ww  w.  j a va2s. c o m*/
     * Obtiene el alto de una Image
     */
    public static int getHeight(Image imagen) {
        int height = new ImageIcon(imagen).getIconHeight();
        return height;
    }

    /**
     * Obtiene el alto de un IconImage
     */
    public static int getHeight(ImageIcon imagen) {
        return imagen.getIconHeight();
    }
}

Related

  1. getChatLogoImage(int width, int height)
  2. getChatLogoImageBig(int width, int height)
  3. getColoredImage(Color color, int width, int height)
  4. getDisabledImage(Image image)
  5. getEingabeImage(int x, int y)
  6. getImageByFilename(String filename)
  7. getImageImmediate(final Image image)
  8. GetImagenConTamanioDado(File file, int ancho, int alto)
  9. getImageWithBorder(Image imagen)