Java BufferedImage Load loadImageData(BufferedImage image)

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

Description

load Image Data

License

Open Source License

Declaration

public static int[] loadImageData(BufferedImage image) 

Method Source Code


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

import java.awt.image.BufferedImage;

public class Main {
    public static int[] loadImageData(BufferedImage image) {
        int w = image.getWidth();
        int h = image.getHeight();
        int[] pixels = image.getRGB(0, 0, w, h, null, 0, w);
        return pixels;
    }/*from w  ww. j a  v a 2 s  .c  o m*/
}

Related

  1. loadImage(String path)
  2. loadImage(String resourceName)
  3. loadImage(String url)
  4. loadImage(URL resource)
  5. loadImage(URL url)
  6. loadImageData(String name)
  7. loadImageFromBytes(byte[] bytes)
  8. loadImageFromFile(File f)
  9. loadImageFromFile(File file)