applyFilter should generate a temp canvas based on the size of the image dimensions, not the user defined dimensions

This commit is contained in:
Eric Rowell 2012-08-21 21:31:44 -07:00
parent 47a0605e00
commit 58ef06d372
3 changed files with 3 additions and 3 deletions

View File

@ -4514,7 +4514,7 @@ Kinetic.Image = Kinetic.Shape.extend({
* filter has been applied
*/
applyFilter: function(config) {
var canvas = new Kinetic.Canvas(this.attrs.width, this.attrs.height);
var canvas = new Kinetic.Canvas(this.attrs.image.width, this.attrs.image.height);
var context = canvas.getContext();
context.drawImage(this.attrs.image, 0, 0);
try {

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@ Kinetic.Image = Kinetic.Shape.extend({
* filter has been applied
*/
applyFilter: function(config) {
var canvas = new Kinetic.Canvas(this.attrs.width, this.attrs.height);
var canvas = new Kinetic.Canvas(this.attrs.image.width, this.attrs.image.height);
var context = canvas.getContext();
context.drawImage(this.attrs.image, 0, 0);
try {