dImage property

type: BufferedImage

default: none

The dImage property contains the BufferedImage to be decoded. The BufferedImage may be obtained from a file, e.g. using:

File file=new File(filename);
scanner.dImage=ImageIO.read(file))

or by drawing an image into a new BufferedImage, e.g.

int w=b1.getWidth(this);
int h=b1.getHeight(this);
b2=(BufferedImage)createImage(w,h);
Graphics2D g2=b2.createGraphics();
g2.drawImage(b1,this);
scanner.dImage=b2;

 

More:

Licensing the Java class