Closed GoogleCodeExporter closed 9 years ago
As mentionned in the README.txt file, you can get a ByteBuffer by calling
getByteBuffer():
ByteBuffer bb = img.getByteBuffer();
And then you use the ByteBuffer like any other standard Java NIO ByteBuffer..
Your operation above would look something like:
bb.put(i*img.widthStep + j*img.nChannels + 0, (byte)111);
Original comment by samuel.a...@gmail.com
on 28 Aug 2010 at 2:56
Many thanks Samuel, I knew I must have missed something! :D
Original comment by josephps...@gmail.com
on 28 Aug 2010 at 6:00
Original issue reported on code.google.com by
josephps...@gmail.com
on 27 Aug 2010 at 9:03