pyCairo: How to resize and position an image?

后端 未结 1 1963
日久生厌
日久生厌 2021-01-02 06:20

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 spe

1条回答
  •  無奈伤痛
    2021-01-02 06:32

    Switch the order of scale and translate. Translate first, then scale.

    0 讨论(0)
提交回复
热议问题