@Override public byte[] getChecksum() { return getChecksum(getData()); }
/** * check if a picture with this picture data already exists in this presentation * * @param pictureData The picture data to find in the SlideShow * @return {@code null} if picture data is not found in this slideshow * @since 3.15 beta 3 */ @Override public HSLFPictureData findPictureData(byte[] pictureData) { byte[] uid = HSLFPictureData.getChecksum(pictureData); for (HSLFPictureData pic : getPictureData()) { if (Arrays.equals(pic.getUID(), uid)) { return pic; } } return null; }
bse.setOptions((short) (0x0002 | (format.nativeId << 4))); bse.setSize(pict.getRawData().length + 8); byte[] uid = HSLFPictureData.getChecksum(data); bse.setUid(uid);