This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,794 Users
  • 2,269,775 Discussions


How to determine the order of bands passed to ByteLookupTable in a LookupOp

1004753 Member Posts: 1
edited Apr 24, 2013 12:54PM in Abstract Window Toolkit (AWT)
Is there a good way to determine what order should the bands be passed to a ByteLookupTable passed to a LookupOp? My source is an RGBA BufferedImage, but the bands can be in any order allowed by a BufferedImage, e.g. ARGB, RGBA ...

Also, is there any easy way to find out what changed in the LookupOp between Java 6 & 7? Thanks.


  • Maxideon
    Maxideon Member Posts: 68
    When communicating through the Raster, the bands are based on the color space. Band 0 will always be red, 1 for green, 2 for blue, and 3 for alpha.

    Said another way, if I called getSample() for band 0 of the first pixel, I would get the same result whether the image is BGR, ABGR, RGB, ARGB, or any other rgb format. I would get the red component of the first pixel.
This discussion has been closed.