REMOVE

-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Joe
Ranieri
Inviato: lunedì 20 dicembre 2010 19:24
A: REALbasic Plugins
Oggetto: Re: REALpictureDescription depth, when will it return a value
larger than zero?

> if (REALLockPictureDescription(pic, &desc, pictureCGBitmapContext))
>
> then the desc.depth is returning 0. Not sure what to say, but if you want
to
> copy the desc.pictureData, you would want to have some idea of the size of
the
> data. So we have to assume that the bytesPerRow is always 4*desc.width,
which
> in the cocoa runtime is not necessarily the case.. inspect the
> TIFFRepresentation docs....
>
> Alfred

It's a bug; Picture.Depth currently always returns 0 under Cocoa.
Instead of relying on the value of that, however, you should query the
CGBitmapContext directly about the format of its underlying data.

-- 
Joe Ranieri
Mac Frameworks & Compiler Engineer
REAL Software, Inc.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to