* Applies an image filter to the image. * * The preset options are: * * `INVERT` * Inverts the colors in the image. No parameter is used. * * `GRAY` * Converts the image to grayscale. No parameter is used. * * `THRESHOLD` * Converts the image to black and white. Pixe
(operation, value)
| 1236 | * } |
| 1237 | */ |
| 1238 | filter(operation, value) { |
| 1239 | Filters.apply(this.canvas, Filters[operation], value); |
| 1240 | this.setModified(true); |
| 1241 | } |
| 1242 | |
| 1243 | /** |
| 1244 | * Copies a region of pixels from another image into this one. |
no test coverage detected