Java BufferedImage Size Get getSize(BufferedImage image)

Here you can find the source of getSize(BufferedImage image)

Description

get Size

License

Open Source License

Declaration

public static Dimension getSize(BufferedImage image) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2014 Open Door Logistics (www.opendoorlogistics.com)
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v3
 * which accompanies this distribution, and is available at http://www.gnu.org/licenses/lgpl.txt
 ******************************************************************************/

import java.awt.Dimension;

import java.awt.image.BufferedImage;

public class Main {
    public static Dimension getSize(BufferedImage image) {
        return new Dimension(image.getWidth(), image.getHeight());
    }/*from   www.ja  va2s  .  com*/
}

Related

  1. getDimension(BufferedImage img)
  2. getDimension(File f)
  3. getDimension(final Image anImage, final ImageObserver obs)
  4. getDimensions(byte[] image)
  5. getSize(int width, int height, Image image)
  6. getSizeByHeight(int height, Image image)
  7. getSizedImage(final URL url, final Dimension size)