Constructor
new ImageFilter(img)
Constructs a new ImageFilter object
Parameters:
Name | Type | Description |
---|---|---|
img |
Object | Either
|
- Source:
Methods
gaussianBlur(radius, amount)
Performs a gaussian blur operation on the image
Parameters:
Name | Type | Description |
---|---|---|
radius |
Number | The radius |
amount |
Number | The amount |
- Source:
getBytes()
Returns the wrapped image as byte array, to use eg. in conjunction
with res.writeBinary()
- Source:
Returns:
The wrapped image as byte array
getImage()
Returns the image that has been worked on
- Source:
Returns:
An instance of helma.image.ImageWrapper
sharpen(amount)
Sharpens the image using a plain sharpening kernel.
Parameters:
Name | Type | Description |
---|---|---|
amount |
Number | The amount of sharpening to apply |
- Source:
unsharpMask(radius, amount)
Performs an unsharp mask operation on the image
Parameters:
Name | Type | Description |
---|---|---|
radius |
Number | The radius |
amount |
Number | The amount |
- Source: