Creates a new CanvasImage instance.
new ImageManipulator(source, [width], [height])
| Parameter | Type | Description | Optional |
|---|---|---|---|
| source | The image source | ||
| width | The width of the image | ||
| height | The height of the image |
The height of the canvas
The image source
The steps to apply to the canvas.
The width of the canvas
Applies blur filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Applies brightness filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Draws the image to the canvas with a circle clip.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| width | The width of the image | ||
| height | The height of the image |
Applies contrast filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Draws the image to the canvas.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| x | The x position to draw the image | ||
| y | The y position to draw the image | ||
| width | The width of the image | ||
| height | The height of the image |
Draws the image to the canvas.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| image | The image to draw | ||
| x | The x position to draw the image | ||
| y | The y position to draw the image | ||
| width | The width of the image | ||
| height | The height of the image |
Applies drop-shadow filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| config | The drop-shadow config |
Flips the canvas.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| axis | 'x''y' | The axis to flip, `x` or `y`. |
Returns the canvas instance by applying the steps.
Applies grayscale filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Applies hue-rotate filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The degrees to rotate |
Applies invert filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Applies opacity filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Draws pixelated image to the canvas.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| pixels | The amount of pixels to use |
Resets the transform of the canvas.
Restores the last saved canvas context state.
Applies saturate filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
Saves the canvas context state.
Applies sepia filter to the image.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| value | The filter intensity |
/docs/canvacord/class/ImageManipulator