3

I would like to be able to control the blurred/fuzzy level of the stroke of a rectangle. It should be realized within the java.awt.geom package. I know how to change the shape of the stroke, like on this jhlabs page, but I don't know how to blur the stroke.

blurred stroke

This is basically what I want for my final result.

freehell
  • 31
  • 3

1 Answers1

0

Here is an open-source class that allows the styling of strokes. It does a good job of explaining itself within its commented code.

From looking at this class, to achieve a blurred stroke look. You will have to mess with the opacity and width of the stroke. Perhaps at the end of the stroke.

Hopefully this will point you in the right direction.

Josef E.
  • 2,179
  • 4
  • 15
  • 30
  • It's an org.geotools.styling.Stroke not a Stroke from java.awt.geom – freehell Jun 26 '14 at 10:44
  • Yea, I couldn't find any in `java.awt.geom`, I figured I'd throw this up here just in case you needed some direction. :P Sorry! @freehell – Josef E. Jun 26 '14 at 13:14