added 'desharpen' enhancement, auto run it before 'sharpen' so that sharpening effects are not always applied over themselves (although this is quite unperformant)
This commit is contained in:
parent
3035b44e85
commit
03d92525af
1 changed files with 7 additions and 0 deletions
|
@ -593,6 +593,8 @@ function ComicBook(id, srcs, opts) {
|
|||
*/
|
||||
sharpen: function (params) {
|
||||
|
||||
this.desharpen();
|
||||
|
||||
var opts = merge({ amount: 0 }, params);
|
||||
|
||||
options.enhance.sharpen = opts;
|
||||
|
@ -602,6 +604,11 @@ function ComicBook(id, srcs, opts) {
|
|||
});
|
||||
|
||||
init();
|
||||
},
|
||||
|
||||
desharpen: function() {
|
||||
delete options.enhance.sharpen;
|
||||
ComicBook.prototype.drawPage();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue