public void injectBitmap(int id, byte[] bitmapFileData) { DirectoryEntry subDirBmp = myRoot.findSubDir("IRD2").findSubDir("IRD" + id); RawResource bmpRes = subDirBmp.getRawResource(0); // strip off BITMAPFILEHEADER byte[] bitmapResourceData = new byte[bitmapFileData.length - 14]; System.arraycopy(bitmapFileData, 14, bitmapResourceData, 0, bitmapResourceData.length); bmpRes.setBytes(bitmapResourceData); }
private RawResource getVersionInfoResource() { DirectoryEntry viDir = myRoot.findSubDir("IRD16").findSubDir("IRD1"); return viDir.getRawResource(0); }
public void injectBitmap(int id, byte[] bitmapData) { DirectoryEntry subDirBmp = myRoot.findSubDir("IRD2").findSubDir("IRD" + id); RawResource bmpRes = subDirBmp.getRawResource(0); bmpRes.setBytes(bitmapData); }