Java Image Create createImage(byte[] data)

Here you can find the source of createImage(byte[] data)

Description

create Image

License

LGPL

Declaration

public static Image createImage(byte[] data) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.awt.Image;

import javax.swing.ImageIcon;

public class Main {
    public static Image createImage(byte[] data) {

        return new ImageIcon(data).getImage();
    }//ww w. jav  a2  s  . c  o m
}

Related

  1. createImage(Component comp, Icon icon)
  2. createImage(Icon icon)
  3. createImage(JPanel panel)
  4. createImage(String str)