[cairo] in_fill hit test and matrix transforms

Behdad Esfahbod behdad at behdad.org
Thu Nov 22 06:02:23 PST 2007


On Thu, 2007-11-22 at 09:43 +0200, Donn wrote:
> 
> > So, you need to get to an identity ctm before doing it for 
> > your use case.
> Er... I confess that I don't savvy what you mean, but I'll go look up
> the 
> terms and tweak.

An identity matrix is one with no transformation.

Try changing your in_fill to this:

  cr.save ()
  cr.identity_matrix ()
  cr.in_file (...)
  cr.restore ()


-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list