Garry,
I think you can go from BufferedImage to a Raster
with getData().
From the Raster you can call getDataBuffer(). The
DataBuffer class is abstract, so you have to find
out (or already know) which subclass you really
have. getDataType() on the DataBuffer can tell you
that.
If your DataBuffer is DataBufferByte, for instance,
then you could get an array byte[][] by calling
getBankData() on the DataBufferByte. Then you have
the data as primitives.
There is an online Programmer's Guide to
Java 2D at:
http://java.sun.com/products/jdk/1.2/docs/guide/2d/spec/j2d-title.fm.html Before the 2D API, the David Geary book "Graphic
Java" was very good. I have not read the later
editions. Look for user reviews at online book sellers.
HTH,
Joe