Commit c81e8b3
Remove duplicate representation of alpha values in image data from SVG
The image data generated for a rasterized SVG currently uses a 32 bit
data array and an alpha values array. The alpha values for every pixel
are stored in both the alpha values array as well as the alpha channel
of the 32 bit data array. This is a redundant representation not giving
any benefits but just leading to unnecessary memory consumption.
This change adapts the SVG rasterization to create image data with a 24
bit data array, such that the alpha values are only stored in the alpha
array.1 parent 39048a0 commit c81e8b3
File tree
1 file changed
+3
-3
lines changed- bundles/org.eclipse.swt.svg/src/org/eclipse/swt/svg
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments