* @param {Integer} sx * @param {Integer} sy * @param {Integer} sw * @param {Integer} sh * @param {Integer} dx * @param {Integer} dy * @param {Integer} dw * @param {Integer} dh * @param {(BLEND|DARKEST|LIGHTEST|DIFFERENCE|MULTIPLY|EXCLUSION|SCREEN|REPLACE|OVERLAY|HARD
(...args)
| 1360 | * @param {(BLEND|DARKEST|LIGHTEST|DIFFERENCE|MULTIPLY|EXCLUSION|SCREEN|REPLACE|OVERLAY|HARD_LIGHT|SOFT_LIGHT|DODGE|BURN|ADD|NORMAL)} blendMode |
| 1361 | */ |
| 1362 | blend(...args) { |
| 1363 | const currBlend = this.drawingContext.globalCompositeOperation; |
| 1364 | const blendMode = args[args.length - 1]; |
| 1365 | const copyArgs = Array.prototype.slice.call(args, 0, args.length - 1); |
| 1366 | |
| 1367 | this.drawingContext.globalCompositeOperation = blendMode; |
| 1368 | this.copy(...copyArgs); |
| 1369 | this.drawingContext.globalCompositeOperation = currBlend; |
| 1370 | this.setModified(true); |
| 1371 | } |
| 1372 | |
| 1373 | /** |
| 1374 | * helper method for web GL mode to indicate that an image has been |
no test coverage detected