public Image createImage(byte[] imagedata, int imageoffset, int imagelength) { if (BDJXletContext.getCurrentContext() == null) { logger.error("createImage(): no context " + Logger.dumpStack()); } ImageProducer ip = new ByteArrayImageSource(imagedata, imageoffset, imagelength); Image newImage = createImage(ip); return newImage; }
public HBackgroundImage(byte pixels[]) { if (pixels == null) { System.err.println("null pixels from " + org.videolan.Logger.dumpStack()); return; } producer = new ByteArrayImageSource(pixels); img = Toolkit.getDefaultToolkit().createImage(producer); }
@Override public Image createImage(byte[] data, int offset, int length) { return createImage(new ByteArrayImageSource(data, offset, length)); }