[cairo] cairo - masking - scaling

raja raja at tachyontech.net
Tue Jul 17 06:49:28 PDT 2007


hi all,

I want to copy part of an image(source surface) to another surface as a 
pattern.

I have a png- image  of size (100,100). I want to copy the top (10, 100) 
pixels into a new png-surface after scaling it down by half.

Can you suggest me how ?

I have tried different ways except the right one. Kind of lost

with thanks and regards,
raja koduru


More information about the cairo mailing list