pyCairo: How to resize and position an image?
问题 Based on the question Create PDF with (resized) PNG images using Pycairo - rescaling Surface issue I have attempted to create code that rescales and places an image at a specific position, as shown in the code below (in this case, for example, the images should appear "over" the underlying rectangles). However, I cannot seem to get the image to appear at the correct location(s). I'd appreciate knowing what I must change, in order to both scale and position an image correctly. import cairo if