In my application I have an image viewer and I am getting bitmaps from web server.
In order to increase the performance of my app, I have a buffer of bitmaps.
The max size of one bitmap can be 0.5mb.
I have bufferSize variable where I want to store the buffer bytes count and therefore I need to know
each Bitmap size which I am going to add in buffer.And if the bites count exceed some X number I delete the bitmap from front of buffer.
And here is my problems:
- I don’t know how to define bitmap bytes count
- I need a suggestion about X number .
Thanks in advance.
1 Answer