637c67af by chenyao

更改切图比例

1 parent 7fd988ed
...@@ -10,9 +10,9 @@ from io import BytesIO ...@@ -10,9 +10,9 @@ from io import BytesIO
10 from unicodedata import normalize 10 from unicodedata import normalize
11 11
12 # 页面保存为png图片参数 12 # 页面保存为png图片参数
13 ZOOM_X_1 = ZOOM_Y_1 = 3.0 13 ZOOM_X_1 = ZOOM_Y_1 = 1.0
14 ZOOM_X_2 = ZOOM_Y_2 = 5.0 14 ZOOM_X_2 = ZOOM_Y_2 = 2.0
15 ZOOM_X_3 = ZOOM_Y_3 = 7.0 15 ZOOM_X_3 = ZOOM_Y_3 = 3.0
16 trans_1 = fitz.Matrix(ZOOM_X_1, ZOOM_X_1).preRotate(0) # zoom factor 1 in each dimension 16 trans_1 = fitz.Matrix(ZOOM_X_1, ZOOM_X_1).preRotate(0) # zoom factor 1 in each dimension
17 trans_2 = fitz.Matrix(ZOOM_X_2, ZOOM_X_2).preRotate(0) # zoom factor 2 in each dimension 17 trans_2 = fitz.Matrix(ZOOM_X_2, ZOOM_X_2).preRotate(0) # zoom factor 2 in each dimension
18 trans_3 = fitz.Matrix(ZOOM_X_3, ZOOM_X_3).preRotate(0) # zoom factor 3 in each dimension 18 trans_3 = fitz.Matrix(ZOOM_X_3, ZOOM_X_3).preRotate(0) # zoom factor 3 in each dimension
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!