Hello,

a simple question:

I tried to access the pixels directly through Raster->DataBufferInt but as
soon as I call:

DataBufferInt dbi = (DataBufferInt)(wr.getDataBuffer());

the image becomes non accelerated and there's apparently no way to
re-accelerate it.


I also noticed that setting the raster pixels with:

raster.setPixel(x,y,a,r,g,b);

works, but I suppose this solution gives very low performance.

so the question is: which is the bset way to change the pixels of an
accelerated (managed) image on the fly ?

Cheers,

Mik of ClassX
============================================================================
> ClassX Development Italy  Via Francesca, 463   I-56030 Montecalvoli (PI) <
> Tel.(+39)-0587-749206  Fax.(+39)-0587-749206  WEB: http://www.classx.it  <
============================================================================

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