GradientPaint with alpha colors bug

A discussion forum for JFreeSVG (a fast, lightweight, SVG generator for the Java platform).

GradientPaint with alpha colors bug

Postby 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
jon
 
Posts: 1
Joined: Thu Feb 19, 2015 1:06 pm

Re: GradientPaint with alpha colors bug

Postby 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: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11654
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeSVG

Who is online

Users browsing this forum: No registered users and 1 guest