FileDocCategorySizeDatePackage
Bitmap.javaAPI DocApache Poi 3.0.11823Sun Mar 11 12:59:30 GMT 2007org.apache.poi.hslf.blip

Bitmap

public abstract class Bitmap extends PictureData
Represents a bitmap picture data: JPEG or PNG. The data is not compressed and the exact file content is written in the stream.
author
Yegor Kozlov

Fields Summary
Constructors Summary
Methods Summary
public byte[]getData()

        byte[] rawdata = getRawData();
        byte[] imgdata = new byte[rawdata.length-17];
        System.arraycopy(rawdata, 17, imgdata, 0, imgdata.length);
        return imgdata;
    
public voidsetData(byte[] data)

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        byte[] checksum = getChecksum(data);
        out.write(checksum);
        out.write(0);
        out.write(data);

        setRawData(out.toByteArray());