mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 22:25:46 -04:00
composite four patches
This commit is contained in:
parent
0291253742
commit
ede6852539
1 changed files with 9 additions and 8 deletions
|
@ -54,11 +54,12 @@ class ImagesExample:
|
|||
))
|
||||
pb = image2.get_pixbuf()
|
||||
|
||||
for (x,y) in [(0,0), (51,0), (104,0)]:
|
||||
pb.composite(
|
||||
image.get_pixbuf(),
|
||||
0, 0,
|
||||
x * scale, y * scale,
|
||||
pb.get_width(), pb.get_height(),
|
||||
0, 0, # offsets
|
||||
x * scale, y * scale, # offsets
|
||||
1, 1, # scale
|
||||
gtk.gdk.INTERP_NEAREST, 255
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue