Re: Memory used by a UIImage?
Re: Memory used by a UIImage?
- Subject: Re: Memory used by a UIImage?
- From: Rick Mann <email@hidden>
- Date: Fri, 04 Mar 2011 20:17:25 -0800
Unfortunately, if I create the image from a PNG, it's possible iOS stores it compressed, and only decompresses when rendering. I'd like to know how much it's using at any given moment.
Thanks, though.
--
Rick
On Mar 4, 2011, at 20:14:26, Steve Christensen wrote:
> I doubt you could find out *exactly* how much memory is being used. You could probably get an approximation by multiplying pixelHeight * pixelWidth * 4 (assuming A, R, G, B channels), since the image bitmap is likely to be the biggest chunk for images of any real size.
>
>
> On Mar 4, 2011, at 2:18 PM, Rick Mann wrote:
>
>> Is there a way to determine how much memory a given UIImage is using for the in-memory image data?
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden