iphone - ImageIO causes more memory to be allocated than the size of the images -
I have 5 UIimageViews that display .png files, each max 200kb, but ImageIO allocates about 1.3 MB for each and the average . 7.3 MB total to see when loaded.
What is this happening?
I have the same amount of images of the same class and it allocates only 2 MB maximum.
As far as I understand the raw RGBA data (red, green, blue, alpha) I am loaded with loaded PNG / JPEG (both compressed formats) using iPhone 4 bytes per pixel so 100x100 image will be 40000 bytes. What are your images?
Comments
Post a Comment