I need to implement radial and linear gradient paints with more than two stops in them. Reading the javadocs on Paint and related interfaces, I'm getting the impression that I need to create a BufferedImage and draw my gradient into that. However, this strikes me as wasteful since I don't know in advance what size of area will need to be painted. How would I preallocate my BufferedImage?
Would anyone be able to point me to docs that explain how to override this interface properly?
(Along the same lines, can you fake a Raster with a procedural texture? Ie, rather than containing a rectangular array of pixels, it contains an equation that accepts x,y and returns a coresponding color value for the (x, y) input?)
Mark McKay
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
