Check the alpha on an image, using a really primitive loop.
()
| 271 | * Check the alpha on an image, using a really primitive loop. |
| 272 | */ |
| 273 | protected void checkAlpha() { |
| 274 | if (pixels == null) return; |
| 275 | |
| 276 | for (int i = 0; i < pixels.length; i++) { |
| 277 | // since transparency is often at corners, hopefully this |
| 278 | // will find a non-transparent pixel quickly and exit |
| 279 | if ((pixels[i] & 0xff000000) != 0xff000000) { |
| 280 | format = ARGB; |
| 281 | break; |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | |
| 287 | ////////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected