FROM : Michael Vannorsdel
DATE : Fri Apr 25 20:16:50 2008
Could it be the CGImage references a compressed image format rather
than a bitmap?
On Apr 25, 2008, at 8:51 AM, Carter R. Harrison wrote:
> What is killing me here is that the CGImage has dimensions 417x234
> and 1668 bytes per row. That to me means that the CFDataRef that I
> am obtaining should be 390,312 bytes (234 x 1668). But the
> CFDataRef is only 6,672 bytes which is nowhere close to what I think
> I should be getting. So I must be doing something wrong in trying
> to get the bitmap data, but I'm not sure what else to do and I even
> found some Apple docs with an example doing the exact same thing
> that I am doing. Can anybody provide some insight on this? Thanks
> everybody.
DATE : Fri Apr 25 20:16:50 2008
Could it be the CGImage references a compressed image format rather
than a bitmap?
On Apr 25, 2008, at 8:51 AM, Carter R. Harrison wrote:
> What is killing me here is that the CGImage has dimensions 417x234
> and 1668 bytes per row. That to me means that the CFDataRef that I
> am obtaining should be 390,312 bytes (234 x 1668). But the
> CFDataRef is only 6,672 bytes which is nowhere close to what I think
> I should be getting. So I must be doing something wrong in trying
> to get the bitmap data, but I'm not sure what else to do and I even
> found some Apple docs with an example doing the exact same thing
> that I am doing. Can anybody provide some insight on this? Thanks
> everybody.
| Related mails | Author | Date |
|---|---|---|
| Carter R. Harrison | Apr 25, 16:51 | |
| Jean-Daniel Dupas | Apr 25, 17:57 | |
| Adam R. Maxwell | Apr 25, 18:10 | |
| David Duncan | Apr 25, 18:12 | |
| Carter R. Harrison | Apr 25, 18:25 | |
| Michael Vannorsdel | Apr 25, 20:16 | |
| Jean-Daniel Dupas | Apr 25, 20:45 | |
| David Duncan | Apr 25, 21:29 |






Cocoa mail archive

