[cairo] copy cairo surface content to a bitmap cont'd..
Jonathan Morton
jonathan.morton at movial.com
Thu Feb 18 08:46:05 PST 2010
> While this memcpy succeeds, the bitmap is upside down and back to
> front.
Assuming that only the Y axis is inverted, you could use one memcpy()
per line to do an inverted copy. Simply copy the first line into the
space reserved for the last one, and so forth. That's fairly cheap, if
you're copying already.
Watch out for off-by-one errors though.
--
------
From: Jonathan Morton
jonathan.morton at movial.com
More information about the cairo
mailing list