True - but thats an array. Depending on the internal representation of DataBuffer (which I have not looked into yet), this could mean that the casting has to be done for each element of the array.
The fact that using setRGB() for individual pixels costs so much memory, could suggest that the internal raster is not int[]. If it would be that way, this would mean that setRGB() needs to do do a lot of casting and create temporaray objects, which would be a good explanation for the noticed memory consumption. Since I am no expert here, I can only guess. MfG; ChaosE [Message sent by forum member 'chaose71' (chaose71)] http://forums.java.net/jive/thread.jspa?messageID=269321 =========================================================================== 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".