Commit d6c39a3
Fixing out of bounds exception when there is an artifical key frame for the first fraction and for the last fraction at the same time. Fixed by using the same approach as if there was only an artificial key frame for the last fraction, which reuses the alpha of the last color.
Adjustment for the starting alpha of an artificial key frame for the first fraction. Gradients should only be visible between two stop elements, not between start and stop or stop and end. To achieve this, the alpha needs to be the same for start and first stop.1 parent adc28f8 commit d6c39a3
File tree
3 files changed
+279
-5
lines changed- graphics2d/src
- main/java/de/rototor/pdfbox/graphics2d
- test
- java/de/rototor/pdfbox/graphics2d
- resources/de/rototor/pdfbox/graphics2d
3 files changed
+279
-5
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
| 1308 | + | |
1308 | 1309 | | |
1309 | 1310 | | |
1310 | | - | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1311 | 1315 | | |
1312 | 1316 | | |
1313 | 1317 | | |
1314 | | - | |
| 1318 | + | |
1315 | 1319 | | |
1316 | 1320 | | |
1317 | | - | |
1318 | | - | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1319 | 1325 | | |
1320 | 1326 | | |
1321 | 1327 | | |
1322 | 1328 | | |
1323 | 1329 | | |
1324 | | - | |
1325 | 1330 | | |
1326 | 1331 | | |
1327 | 1332 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
Lines changed: 268 additions & 0 deletions
Loading
0 commit comments