Re: Extremely confused, GWorlds and CopyBits
Re: Extremely confused, GWorlds and CopyBits
- Subject: Re: Extremely confused, GWorlds and CopyBits
- From: Sailor Quasar <email@hidden>
- Date: Sun, 11 Jan 2004 12:41:50 -0500
On Sunday, January 11, 2004, at 12:07 PM, Scott Ribe wrote:
It's reasonably obvious that I've got a rowBytes issue or something,
but for the life of me I can not figure out what the heck it is.
24-bit
RGB should yield 3 bytes per pixel, times the width of the image,
hence
1024 * 3. Someone please point out to me whatever my glaringly obvious
error is.
I don't remember the specifics (sorry) but I remember when I was doing
some
low-level direct messing around with Gworlds and CopyBits that I had a
problem where the description of RGB formats led me to believe they
needed 3
bytes/pixel, when in fact they used 4 bytes/pixel. I *think* that was
k24RGBPixelFormat.
And sure enough, the moment I switch it to add the extra byte/pixel, it
works like a charm. Thanks. Shouldn't this be documented somewhere?
(I apologize again for the cross-post, but this seems the sort of piece
of information that belongs in the archives of both lists.)
-- Sailor Quasar, High Codemaster of the Web, scourge of systems
MacOS is to Windows as Terminus is to Trantor.
Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.