composite four patches

This commit is contained in:
Jon Dowland 2008-02-23 12:32:03 +00:00
parent 0291253742
commit ede6852539

View file

@ -54,11 +54,12 @@ class ImagesExample:
)) ))
pb = image2.get_pixbuf() pb = image2.get_pixbuf()
for (x,y) in [(0,0), (51,0), (104,0)]:
pb.composite( pb.composite(
image.get_pixbuf(), image.get_pixbuf(),
0, 0, x * scale, y * scale,
pb.get_width(), pb.get_height(), pb.get_width(), pb.get_height(),
0, 0, # offsets x * scale, y * scale, # offsets
1, 1, # scale 1, 1, # scale
gtk.gdk.INTERP_NEAREST, 255 gtk.gdk.INTERP_NEAREST, 255
) )