[cairo] Re: New API: cairo_surface_get_width/height

Carl Worth cworth at redhat.com
Fri Jun 9 11:46:45 PDT 2006


On Fri, 09 Jun 2006 13:57:10 -0400, Owen Taylor wrote:
> 
> I don't understand how this differs from the case we already handle of
> fallbacks where we have to read the source.
> 

Maybe I didn't phrase the question clearly enough.

Given a surface-based pattern, how can a user create a new, derivative
surface pattern that differs only in some transformation of the
content of the surface, (where said transformation depends on direct
manipulation as available in an image surface)?

My answer would involve copying the original surface to a new image
surface. But what size to create the new image surface?

Clearly it should be the same size as the original surface within the
pattern. Now, you've argued that some surfaces don't have a
well-defined notion of a size, but only for surfaces that are also not
useful in patterns anyway, right?

In the case of my question here, we know that we can reliably read the
surface contents else the pattern is useless to begin with and it
really doesn't matter what happens.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060609/12c7777d/attachment.pgp


More information about the cairo mailing list