I only play with Java for fun, my background is mostly C++, so my question might seem a little strange for professional Java developers.
Say we have a Bitmap
class filled with some pixels we want to read. Of course, the first best solution is getPixel
method, but it makes some unnecessary checks for every pixel and thus works a bit slow. We could of use getPixels
, but it copies the bitmap data doubling it in size and there is not too much spare memory on our target device. Not to mention, copying still takes time.
Is there some way to get objects field in Java omitting the interface?