[cairo] Recording Surfaces (was Re: virtual surfaces and composition)
Adrian Johnson
ajohnson at redneon.com
Sat Dec 12 02:56:50 PST 2015
On 10/12/15 07:56, Lawrence D'Oliveiro wrote:
> On Wed, 09 Dec 2015 15:47:01 +0000, Henry (Yu) Song wrote:
>
>> Does cairo recording surface work for you? Unfortunately cairo
>> recording surface does not have "TRUE" playback though.
>
> I did one brief experiment with recording surfaces: I drew a simple
> circle shape, and then constructed a pattern from that surface to draw
> into another surface.
>
> However, when I scaled up the pattern, it looked blurred. Which
> surprised me, because I thought it would be resolution-independent.
>
It works for me. All the recording surface does is record the drawing
API commands and their parameters and replay them to the target surface.
It does not save a rendered image. Replaying to different scales should
work unless there was a bug in the version you tried.
More information about the cairo
mailing list