public class ColorFiltering extends java.lang.Object implements IApplyInPlace
The filter filters pixels inside/outside of specified RGB color range - it keeps pixels with colors inside/outside of specified range and fills the rest with specified color
.| Constructor and Description |
|---|
ColorFiltering()
Initialize a new instance of the ColorFiltering class.
|
ColorFiltering(IntRange red,
IntRange green,
IntRange blue)
Initialize a new instance of the ColorFiltering class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
IntRange |
getBlue()
Get range of the blue channel.
|
IntRange |
getGreen()
Get range from green channel.
|
IntRange |
getRed()
Get range from red channel.
|
void |
setBlue(IntRange blue)
Set range of the blue channel.
|
void |
setGreen(IntRange green)
Set range of the green channel.
|
void |
setRed(IntRange red)
Set range of the red channel.
|
public ColorFiltering()
public IntRange getRed()
public void setRed(IntRange red)
red - Red range.public IntRange getGreen()
public void setGreen(IntRange green)
green - Green range.public IntRange getBlue()
public void setBlue(IntRange blue)
blue - Blue range.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.