Creates a new CanvasHelper instance.
new ImageFilterer(width, height)
The height of the canvas
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 |
Applies contrast filter to the image.
Parameter | Type | Description | Optional |
---|---|---|---|
value | The filter intensity |
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 |
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 |
Applies saturate filter to the image.
Parameter | Type | Description | Optional |
---|---|---|---|
value | The filter intensity |
Applies sepia filter to the image.
Parameter | Type | Description | Optional |
---|---|---|---|
value | The filter intensity |
/docs/canvacord/class/ImageFilterer