[cairo] ImageSurface from a Pattern
Donn
donn.ingle at gmail.com
Wed Dec 10 18:11:24 PST 2014
Hello there Uli,
I'm not a native C ninja, so I spent an hour writing the attached to
show you where my head's at.
In Vala I'm having trouble moving from a "Surface" to an "ImageSurface",
however I know Vala is not your bag, so leave that aside.
In the C, my intent is:
1. Draw a 100px rectangle.
2. Set is as a clip - so that the size will be 100px (IIUC what you
explained.)
3. pop_group into pat var.
4. Get the surface of that pat.
5. Get the width of that surface (i.e. 100px)
The code is giving me 400px - the size of the initial cr surface.
Where did I up-screw? :D
\d
Once again, I really appreciate your help on my annual Cairo holidays.
:)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: surfaces.c
Type: text/x-csrc
Size: 1180 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20141211/14256839/attachment.c>
More information about the cairo
mailing list