Package com.jhlabs.image
Class ColorHalftoneFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.ColorHalftoneFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A Filter to pixellate images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) float
Get the cyan screen angle.float
Get the pixel block size.float
Get the magenta screen angle.float
Get the yellow screen angle.void
setCyanScreenAngle
(float cyanScreenAngle) Set the cyan screen angle.void
setdotRadius
(float dotRadius) Set the pixel block size.void
setMagentaScreenAngle
(float magentaScreenAngle) Set the magenta screen angle.void
setYellowScreenAngle
(float yellowScreenAngle) Set the yellow screen angle.toString()
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
ColorHalftoneFilter
public ColorHalftoneFilter()
-
-
Method Details
-
setdotRadius
public void setdotRadius(float dotRadius) Set the pixel block size.- Parameters:
dotRadius
- the number of pixels along each block edge- See Also:
-
getdotRadius
public float getdotRadius()Get the pixel block size.- Returns:
- the number of pixels along each block edge
- See Also:
-
getCyanScreenAngle
public float getCyanScreenAngle()Get the cyan screen angle.- Returns:
- the cyan screen angle (in radians)
- See Also:
-
setCyanScreenAngle
public void setCyanScreenAngle(float cyanScreenAngle) Set the cyan screen angle.- Parameters:
cyanScreenAngle
- the cyan screen angle (in radians)- See Also:
-
getMagentaScreenAngle
public float getMagentaScreenAngle()Get the magenta screen angle.- Returns:
- the magenta screen angle (in radians)
- See Also:
-
setMagentaScreenAngle
public void setMagentaScreenAngle(float magentaScreenAngle) Set the magenta screen angle.- Parameters:
magentaScreenAngle
- the magenta screen angle (in radians)- See Also:
-
getYellowScreenAngle
public float getYellowScreenAngle()Get the yellow screen angle.- Returns:
- the yellow screen angle (in radians)
- See Also:
-
setYellowScreenAngle
public void setYellowScreenAngle(float yellowScreenAngle) Set the yellow screen angle.- Parameters:
yellowScreenAngle
- the yellow screen angle (in radians)- See Also:
-
filter
-
toString
-