(options: MathResizeAndUnsharpOptions)
| 60 | } |
| 61 | |
| 62 | resizeAndUnsharp (options: MathResizeAndUnsharpOptions): Uint8Array { |
| 63 | const result = this.resize(options) |
| 64 | |
| 65 | if (options.unsharpAmount) { |
| 66 | this.unsharp_mask( |
| 67 | result, |
| 68 | options.toWidth, |
| 69 | options.toHeight, |
| 70 | options.unsharpAmount, |
| 71 | options.unsharpRadius, |
| 72 | options.unsharpThreshold |
| 73 | ) |
| 74 | } |
| 75 | |
| 76 | return result |
| 77 | } |
| 78 | } |
no test coverage detected