(BackgroundTextureInfo texture)
| 1282 | } |
| 1283 | |
| 1284 | public byte[] getImageData(BackgroundTextureInfo texture) { |
| 1285 | if (texture.isNone()) |
| 1286 | return null; |
| 1287 | if (texture.resourceId != 0) { |
| 1288 | byte[] data = loadResourceBytes(texture.resourceId); |
| 1289 | return data; |
| 1290 | } else if (texture.id != null && texture.id.startsWith("/")) { |
| 1291 | File f = new File(texture.id); |
| 1292 | byte[] data = loadResourceBytes(f); |
| 1293 | return data; |
| 1294 | } |
| 1295 | return null; |
| 1296 | } |
| 1297 | |
| 1298 | public BackgroundTextureInfo getTextureInfoById(String id) { |
| 1299 | if (id == null) |
no test coverage detected