One classic frothing example is:
// Get color of one point. // A side effect is internally creating an object for the pixel, // which when you do that repeatedly, causes frothing. int rgb = bufferedImage.getRGB( x, y );which can be rewritten like this to avoid frothing.
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/jgloss/frothing.html | J:\mindprod\jgloss\frothing.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.191.109] | |
| Feedback | You are visitor number 5,517. | |