use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class AbstractValueTransformImageDataFilter method filter.
@Override
public ImageData filter(ImageData source, final boolean copy) {
if (null == source) {
return null;
}
if (copy) {
source = source.copy();
}
if (false == isActive()) {
return source;
}
final CanvasPixelArray data = source.getData();
if (null == data) {
return source;
}
final ImageData result = source.create();
FilterCommonOps.doFilterTransform(data, result.getData(), getTransform(getValue()), source.getWidth(), source.getHeight());
return result;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class AlphaScaleColorImageDataFilter method filter.
@Override
public ImageData filter(ImageData source, final boolean copy) {
if (null == source) {
return null;
}
if (copy) {
source = source.copy();
}
if (false == isActive()) {
return source;
}
final CanvasPixelArray data = source.getData();
if (null == data) {
return source;
}
filter_(data, FilterCommonOps.getLength(source), getR(), getG(), getB(), isInverted());
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class BrightnessImageDataFilter method filter.
@Override
public ImageData filter(ImageData source, final boolean copy) {
if (null == source) {
return null;
}
if (copy) {
source = source.copy();
}
if (false == isActive()) {
return source;
}
final CanvasPixelArray data = source.getData();
if (null == data) {
return source;
}
filter_(data, FilterCommonOps.getLength(source), getValue());
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class ColorDeltaAlphaImageDataFilter method filter.
@Override
public ImageData filter(ImageData source, final boolean copy) {
if (null == source) {
return null;
}
if (copy) {
source = source.copy();
}
if (false == isActive()) {
return source;
}
final CanvasPixelArray data = source.getData();
if (null == data) {
return source;
}
filter_(data, FilterCommonOps.getLength(source), getR(), getG(), getB(), getValue());
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class LuminosityGrayScaleImageDataFilter method filter.
@Override
public ImageData filter(ImageData source, final boolean copy) {
if (null == source) {
return null;
}
if (copy) {
source = source.copy();
}
if (false == isActive()) {
return source;
}
final CanvasPixelArray data = source.getData();
if (null == data) {
return source;
}
FilterCommonOps.dofilterLuminosity(data, FilterCommonOps.getLength(source));
return source;
}
Aggregations