use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class RGBIgnoreAlphaImageDataFilter method filter.
/**
* Returns an {@link ImageData} that is transformed based on the passed in RGB color, setting alpha to 255
*/
@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());
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class StackBlurImageDataFilter 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, source.getWidth(), source.getHeight(), (int) getValue(), FilterCommonOps);
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class EdgeDetectImageDataFilter 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();
filter_(data, result.getData(), source.getWidth(), source.getHeight());
return result;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class EmbossImageDataFilter 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), source.getWidth(), FilterCommonOps);
return source;
}
use of com.google.gwt.canvas.dom.client.CanvasPixelArray in project lienzo-core by ahome-it.
the class HueImageDataFilter 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, source.getWidth(), source.getHeight(), getValue(), FilterCommonOps);
return source;
}
Aggregations