useall values from colormmatrix filter'smatrix

This commit is contained in:
honfika@gmail.com
2014-12-14 10:43:10 +01:00
parent 3f0db1412d
commit 27e2769ff3

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.types.filters;
import com.jpexs.decompiler.flash.types.BasicType;
@@ -41,13 +42,12 @@ public class COLORMATRIXFILTER extends FILTER {
@Override
public SerializableImage apply(SerializableImage src) {
public SerializableImage apply(SerializableImage src) {
float[][] matrix2 = new float[4][5];
for (int y = 0; y < 4; y++) {
for (int y = 0; y < 4; y++) {
for (int x = 0; x < 5; x++) {
matrix2[y][x] = matrix[y * 5 + x];
}
}
}
return Filtering.colorMatrix(src, matrix2);
}