replaceImage

This commit is contained in:
Chinmay Pandhare
2017-07-01 23:49:24 +05:30
parent 74f1f92910
commit 3b16b66b28
6 changed files with 35 additions and 9 deletions

View File

@@ -19,7 +19,12 @@ function LoadImage(ref, name, src) {
},
draw: function() {
if(arguments.length==1){
this.outputData = CImage(arguments[0]);
this.output = CImage(arguments[0]);
return true;
}
else if(arguments.length==2) {
this.output = CImage(arguments[0]);
arguments[1]();
return true;
}
return false;