172173174175176177178179180181182
context.putImageData(new RGBIgnoreAlphaImageDataFilter(rgb.getR(), rgb.getG(), rgb.getB()).filter(imageData, true), 0, 0); // Load the resulting image from the temporary canvas into the selection Image String dataURL = scratch.toDataURL(); new ImageLoader(dataURL) { @Override public void onLoaded(ImageLoader image)
290291292293294295296297298299300
context.drawImage(m_imageJSO, m_x, m_y, m_width, m_height, 0, 0, m_destinationWidth, m_destinationHeight); if (mimeType == null) { return scratch.toDataURL(); } else return scratch.toDataURL(mimeType); } protected void doneLoading()
292293294295296297298299300301302
if (mimeType == null) { return scratch.toDataURL(); } else return scratch.toDataURL(mimeType); } protected void doneLoading() { m_loaded = true;
609610611612613614615616617618619
{ layer.drawWithTransforms(scratch.getContext()); } } } return scratch.toDataURL(); } else { return "data:,"; }
645646647648649650651652653654655
675676677678679680681682683684685
{ layer.drawWithTransforms(scratch.getContext()); } } } return scratch.toDataURL(mimetype); } else { return "data:,"; }
711712713714715716717718719720721