Java 类sun.awt.image.ByteArrayImageSource 实例源码

项目:libbluray    文件:BDToolkitBase.java   
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;
}
项目:libbluray    文件:HBackgroundImage.java   
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);
}
项目:openjdk-jdk10    文件:SunToolkit.java   
@Override
public Image createImage(byte[] data, int offset, int length) {
    return createImage(new ByteArrayImageSource(data, offset, length));
}
项目:openjdk9    文件:SunToolkit.java   
@Override
public Image createImage(byte[] data, int offset, int length) {
    return createImage(new ByteArrayImageSource(data, offset, length));
}