PyMuPDF 1.24.2 Documentation------------------------------------------------------ # add the Ink annotation, consisting of 2 curve segments #------------------------------------------------------------------------------ annot = page Graphics PyMuPDF Documentation, Release 1.24.2 (continued from previous page) elif item[0] == "c": # curve shape.draw_bezier(item[1], item[2], item[3], item[4]) else: raise ValueError("unhandled drawing" Page.draw_bezier() PDF only: draw a cubic Bezier curve Page.draw_circle() PDF only: draw a circle Page.draw_curve() PDF only: draw a special Bezier curve Page.draw_line() PDF only: draw a line Page.draw_oval()0 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentationPage.drawBezier() PDF only: draw a cubic Bézier curve Page.drawCircle() PDF only: draw a circle Page.drawCurve() PDF only: draw a special Bézier curve Page.drawLine() PDF only: draw a line Page.drawOval() roundCap = True, overlay = True, closePath = False, morph = None) PDF only: Draw a cubic Bézier curve from p1 to p4 with the control points p2 and p3. drawCurve(p1, p2, p3, color = (0, 0, 0), fill = Description Shape.commit() update the page’s /Contents object Shape.drawBezier() draw a cubic Bézier curve Shape.drawCircle() draw a circle around a point Shape.drawCurve() draw a cubic Bézier using one0 码力 | 387 页 | 2.70 MB | 1 年前3
MuPDF 1.22.0 DocumentationArguments • x – X coordinate. • y – Y coordinate. curveTo(x1, y1, x2, y2, x3, y3) Draw a cubic bezier curve to (x3, y3) using (x1, y1) and (x2, y2) as control points. Arguments • x1 – X1 coordinate. • y1 coordinate. • x3 – X3 coordinate. • y3 – Y3 coordinate. curveToV(cx, cy, ex, ey) Draw a cubic bezier curve to (ex, ey) using the start point and (cx, cy) as control points. Arguments • cx – CX coordinate coordinate. • ex – EX coordinate. • ey – EY coordinate. curveToY(cx, cy, ex, ey) Draw a cubic bezier curve to (ex, ey) using the (cx, cy) and (ex, ey) as control points. Arguments • cx – CX coordinate.0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentationntext *ctx, fz_pixmap *pix, float gamma); Apply a gamma correction curve on the samples. A typical use is to adjust the gamma curve on an inverted image by applying a correction factor of 1/1.4. fz_pixmap • y – Y coordinate. path.lineTo(20,20); curveTo(x1, y1, x2, y2, x3, y3) Draw a cubic bezier curve to (x3, y3) using (x1, y1) and (x2, y2) as control points. Arguments • x1 – X1 coordinate. • y1 coordinate. path.curveTo(0, 0, 10, 10, 100, 100); curveToV(cx, cy, ex, ey) Draw a cubic bezier curve to (ex, ey) using the start point and (cx, cy) as control points. Arguments • cx – CX coordinate0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentationntext *ctx, fz_pixmap *pix, float gamma); Apply a gamma correction curve on the samples. A typical use is to adjust the gamma curve on an inverted image by applying a correction factor of 1/1.4. fz_pixmap Javascript MuPDF Documentation, Release 1.25.0 curveTo(x1, y1, x2, y2, x3, y3) Draw a cubic bezier curve to (x3, y3) using (x1, y1) and (x2, y2) as control points. Arguments • x1 – X1 coordinate. • y1 coordinate. path.curveTo(0, 0, 10, 10, 100, 100); curveToV(cx, cy, ex, ey) Draw a cubic bezier curve to (ex, ey) using the start point and (cx, cy) as control points. Arguments • cx – CX coordinate0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentationntext *ctx, fz_pixmap *pix, float gamma); Apply a gamma correction curve on the samples. A typical use is to adjust the gamma curve on an inverted image by applying a correction factor of 1/1.4. fz_pixmap • y – Y coordinate. path.lineTo(20,20); curveTo(x1, y1, x2, y2, x3, y3) Draw a cubic bezier curve to (x3, y3) using (x1, y1) and (x2, y2) as control points. Arguments • x1 – X1 coordinate. • y1 coordinate. path.curveTo(0, 0, 10, 10, 100, 100); curveToV(cx, cy, ex, ey) Draw a cubic bezier curve to (ex, ey) using the start point and (cx, cy) as control points. Arguments • cx – CX coordinate0 码力 | 249 页 | 830.15 KB | 8 月前3
共 6 条
- 1













