> > Another quick question - how do I get the alpha data?
It looks like CopyFrame's outputted gfxImageSurface is created in ARGB
format (gfxASurface::ImageFormatARGB32):
http://mxr.mozilla.org/mozilla-central/source/modules/libpr0n/src/RasterImage.cpp?mark=650-653#650
So I imagine the alpha values are just encoded in every fourth byte of
the gfxImageSurface's "Data()" buffer. (starting with byte 0, I assume)
~Daniel
On 03/08/2011 10:11 PM, yakobom wrote:
Hi Daniel,
Thank you very much - I'm able to progress now.
Another quick question - how do I get the alpha data? Previously I
used gfxIImageFrame::GetAlphaData, but I cannot find an equivalent.
Thanks,
yakobom
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout