public class HSLFiltering extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
HSLFiltering()
Initializes a new instance of the HSLFiltering class.
|
HSLFiltering(IntRange hue,
FloatRange saturation,
FloatRange luminance)
Initializes a new instance of the HSLFiltering class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
float[] |
getFillColor()
Get fill color used to fill filtered pixels.
|
IntRange |
getHue()
Get Range of hue component, [0, 359].
|
FloatRange |
getLuminance()
Get Range of luminance component, [0, 1].
|
FloatRange |
getSaturation()
Get Range of saturation component, [0, 1].
|
boolean |
isFillOutsideRange()
Verify if pixels should be filled inside or outside specified color range.
|
boolean |
isUpdatedHue()
Verify if hue value of filtered pixels should be updated.
|
boolean |
isUpdatedLuminance()
Verify if luminance value of filtered pixels should be updated.
|
boolean |
isUpdatedSaturation()
Verify if saturation value of filtered pixels should be updated.
|
void |
setFillColor(int hue,
float saturation,
float luminance)
Set fill color used to fill filtered pixels.
|
void |
setFillOutsideRange(boolean fillOutsideRange)
Determines, if pixels should be filled inside or outside specified.
|
void |
setHue(IntRange hue)
Set Range of hue component, [0, 359].
|
void |
setLuminance(FloatRange luminance)
Set Range of luminance component, [0, 1].
|
void |
setSaturation(FloatRange saturation)
Set Range of saturation component, [0, 1].
|
void |
setUpdateHue(boolean update)
Determines, if hue value of filtered pixels should be updated.
|
void |
setUpdateLuminance(boolean update)
Determines, if luminance value of filtered pixels should be updated.
|
void |
setUpdateSaturation(boolean update)
Determines, if saturation value of filtered pixels should be updated.
|
public HSLFiltering()
public HSLFiltering(IntRange hue, FloatRange saturation, FloatRange luminance)
hue - Range of hue component.saturation - Range of saturation component.luminance - Range of luminance component.public IntRange getHue()
public void setHue(IntRange hue)
hue - Hue component.public FloatRange getSaturation()
public void setSaturation(FloatRange saturation)
saturation - Saturation component.public FloatRange getLuminance()
public void setLuminance(FloatRange luminance)
luminance - Luminance component.public float[] getFillColor()
public void setFillColor(int hue,
float saturation,
float luminance)
hue - Hue, [0, 359].saturation - Saturation, [0, 1].luminance - Luminance, [0, 1].public boolean isFillOutsideRange()
public void setFillOutsideRange(boolean fillOutsideRange)
fillOutsideRange - True if fill outside the range, otherwise false.public boolean isUpdatedHue()
public void setUpdateHue(boolean update)
update - True if should be updated, otherwise false.public boolean isUpdatedSaturation()
public void setUpdateSaturation(boolean update)
update - True if should be updated, otherwise false.public boolean isUpdatedLuminance()
public void setUpdateLuminance(boolean update)
update - True if should be updated, otherwise false.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.