Java ImageIcon getSizeOfImage(ImageIcon imgIn)

Here you can find the source of getSizeOfImage(ImageIcon imgIn)

Description

get Size Of Image

License

Open Source License

Declaration

public static long getSizeOfImage(ImageIcon imgIn) 

Method Source Code

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

import java.awt.image.BufferedImage;

import javax.swing.ImageIcon;

public class Main {
    public static long getSizeOfImage(BufferedImage imgIn) {
        return (long) (imgIn.getHeight() * imgIn.getWidth() * 3);
    }/*www .ja  v a  2 s . c om*/

    public static long getSizeOfImage(ImageIcon imgIn) {
        return (long) (imgIn.getIconHeight() * imgIn.getIconWidth() * 3);
    }
}

Related

  1. getByteImage(ImageIcon icon)
  2. getDisabledIcon(ImageIcon icon)
  3. getHeight(ImageIcon imagen)
  4. getOpenSwingImage(String name, ImageIcon defaultIcon)
  5. getRenderedImage(ImageIcon icon)
  6. getThumbImage(ImageIcon myLoadedImageIcon, int thumbHeight, int thumbWidth)
  7. getThumbnail(ImageIcon src, int maxWidth)
  8. grabRGB(ImageIcon icon)
  9. iconDefaultSize(ImageIcon imag)