lg -- this is exactly what I've been trying to tell
the Java2D guys for a couple of years now.

They just tell me that I'm too stupid to understand
the real value of BufferedImages.

My view of the "downside" is that's where
all the fun programming is.

[EMAIL PROTECTED] wrote:
Well, this seems really hard to optimize ... tons of very small primitives.

The only advice I can give you is to grab the Raster of a INT_RGB buffered 
image:
byte[] data=((DataBufferByte)tex.getRaster().getDataBuffer()).getData()  (in 
your case its an int[] of course), and write code that does the drawing on the 
pixel-array itself.

It should be really fast to colour those few pixels if you don't have to walk 
through a general framework, but instead do exactly what you need and that 
optimized.
The downside of course is quite a lot of hand-written low-level code.

lg Clemens
[Message sent by forum member 'linuxhippy' (linuxhippy)]

http://forums.java.net/jive/thread.jspa?messageID=301094

===========================================================================
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".


===========================================================================
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".

Reply via email to