Re: NSBitMapImageRep Woes
Re: NSBitMapImageRep Woes
- Subject: Re: NSBitMapImageRep Woes
- From: Graham Cox <email@hidden>
- Date: Thu, 7 Jan 2010 13:56:12 +1100
On 07/01/2010, at 4:21 AM, David Blanton wrote:
> bytesPerRow:(4 * m_frameRect.size.width)
> bitsPerPixel:32];
Apart from what others have said, you can pass 0 for these parameters and they get calculated for you. That's usually safest because any inconsistency among the parameters throws an exception.
--Graham
_______________________________________________
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