tkinter postscript和save调整画布大小

时间:2017-06-14 16:15:09

标签: python tkinter python-imaging-library postscript tkinter-canvas

我有一个我想要导出的画布,其大小与我在代码中指定的大小相同。 以下是我用于此的功能。 asksaveasfile是来自tkinter的对话框窗口:

<div class="form-group">
  <label for="">Input 1</label>
  <input type="number" class="form-control" ng-model="input.value1">
  <label for="">Input 2</label>
  <input type="number" class="form-control" ng-model="input.value2">
  <label for="">Input 3</label>
  <input type="number" class="form-control" ng-model="input.value3">
  <label for="">Input 4</label>
  <input type="number" class="form-control" ng-model="input.value4">
</div>

我有两个问题。

  1. 这会将我的原始画布调整为大约75%的尺寸。
  2. 它似乎在顶部和底部添加了额外的像素,与新图像的宽高比略微相符。
  3. 有关为什么会这样以及如何解决这个问题的猜测?

0 个答案:

没有答案