Image Filter
From Emitrom
Filters allow you to produce a new image. This is typically done by applying a mathematical algorithm to the source image.
Contents |
Built In Types
Lienzo comes with a variety of built-in image filters. They can be used out of the box to create a number of effects for images.
Average Gray Scale
Blur
Brightness
Valid brightness values are between -1 and 1.
Color Luminosity
The color luminosity filter allows for a color to be passed in and be used during the creation of the filter. The color can be a valid CSS Color String or IColor (i.e. Color or
ColorName Javadoc).
Color
ColorName Javadoc
Color Luminosity Filter Javadoc
Lightness Gray
Luminosity Gray
Luminosity Gray Filter Javadoc
RGB Ignore Alpha
RGB
Channel Brightness
Filter Channel Brightness Filter Javadoc
Create your own filters
It is very simple to create your own filter. All you have to do is:
- Create a new class that implements
- Override the filter method and provide your own implementation.
