GradientPaint with alpha colors bug

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).
Locked
jon
Posts: 1
Joined: Thu Feb 19, 2015 1:06 pm
antibot: No, of course not.

GradientPaint with alpha colors bug

Post by jon » Thu Feb 19, 2015 1:17 pm

Hello, I've found a bug when using gradients using Colors with alpha-values. LinearGradientPaint, GradientPaint and RadialGradientPaint are all affected.

The cause for this bug is easily found in the SVGGraphics2D.java class and the methods getLinearGradientElement for respective paint type listed above.
Im happy to help and fix this bug if needed.

Kind Regards
Jon

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: GradientPaint with alpha colors bug

Post by david.gilbert » Tue Feb 24, 2015 10:28 pm

Hi Jon,

I didn't have time to look yet, but any help to fix this would be welcome. I'm sure it won't be too difficult to fix...I'll try to look at the weekend.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked