mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
Merge branch 'retina-filters' of https://github.com/amw/KineticJS into amw-retina-filters
Conflicts: src/shapes/Image.js
This commit is contained in:
@@ -118,16 +118,16 @@
|
||||
filter = this.getFilter(),
|
||||
filterCanvas, context, imageData;
|
||||
|
||||
|
||||
filterCanvas = this.filterCanvas = new Kinetic.SceneCanvas({
|
||||
width: width,
|
||||
height: height
|
||||
height: height,
|
||||
pixelRatio: 1
|
||||
});
|
||||
|
||||
context = filterCanvas.getContext();
|
||||
|
||||
try {
|
||||
this._drawImage(context, [image, 0, 0, width, height]);
|
||||
this._drawImage(context, [image, 0, 0, filterCanvas.getWidth(), filterCanvas.getHeight()]);
|
||||
imageData = context.getImageData(0, 0, filterCanvas.getWidth(), filterCanvas.getHeight());
|
||||
filter.call(this, imageData);
|
||||
context.putImageData(imageData, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user