[cairo] byte data storage format

Carl Worth cworth at cworth.org
Thu Feb 12 09:49:42 PST 2009


On Wed, 2009-02-11 at 10:07 -0700, Dan Ventura wrote:
> Is there a clean way to access pixel-level image_surface data that is
> not going to run into platform issues?  Hopefully this isn't too dumb
> of a question...

Yes. Just treat the data as 32-bit integers and do masking and shifting
like Bill showed earlier. That will work on all platforms.

-Carl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.cairographics.org/archives/cairo/attachments/20090212/59de16f6/attachment.pgp 


More information about the cairo mailing list