[cairo] Image drawing questions
Carl Worth
cworth at cworth.org
Thu Sep 25 09:39:46 PDT 2008
On Tue, 2008-09-09 at 18:18 -0300, Ian Britten wrote:
> Case 1: In this case, I'm working toward calling
> Context::set_source(Surface, x, y), and am mucking about with
> the transformation of the context itself.
>
> Case 1: In this case, I'm working toward calling
> Context::set_source(Pattern), and am making a SurfacePattern
> from my Surface, and am trying to configure the Matrix on it.
>
> What, if anything, is the difference?
No difference at all. Your first "case 1" is simply a convenience
function for the second "case 1"---it does the common case of a
transformation matrix that is simply a translation and lets you avoid
having to juggle a separate pattern object.
Have fun!
-Carl
More information about the cairo
mailing list