mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 16:05:32 +00:00
useall values from colormmatrix filter'smatrix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user