posted 15 years ago
here is my best solution :
Override GradientPaint (easy part) to HSVGradientPaint
copy paste/ GradientPaintContext into HSVGradientPaint (easy part)
there is an ugly code from sun that I can't get rid of (if someone has a deep knowledge on how to work on raster ...)
and replace the interp array filling (in the construcor) with one that matches HSV color.
here is the master piece, use this function to fill the "interp" array instead of the original code.
and BTW I would realllllllly like to find a better solution.
eric
(ps: attachement does not work, here is a copy paste of the whole solution )