Java BufferedImage Size Get getDimension(final Image anImage, final ImageObserver obs)

Here you can find the source of getDimension(final Image anImage, final ImageObserver obs)

Description

get Dimension

License

LGPL

Declaration

public static Dimension getDimension(final Image anImage, final ImageObserver obs) 

Method Source Code

//package com.java2s;

import java.awt.Dimension;

import java.awt.Image;

import java.awt.image.ImageObserver;

public class Main {
    public static Dimension getDimension(final Image anImage, final ImageObserver obs) {
        return new Dimension(anImage.getWidth(obs), anImage.getHeight(obs));
    }/*from   w  ww.  j a v a2 s. c  o m*/
}

Related

  1. getDimension(BufferedImage img)
  2. getDimension(File f)
  3. getDimensions(byte[] image)
  4. getSize(BufferedImage image)
  5. getSize(int width, int height, Image image)
  6. getSizeByHeight(int height, Image image)