cpdf-source/cpdfdraw.mli

34 lines
797 B
OCaml
Raw Normal View History

2022-12-15 13:41:19 +01:00
type drawops_colspec =
NoCol
| RGB of float * float * float
| Grey of float
| CYMK of float * float * float * float
type drawops =
2022-12-21 17:09:04 +01:00
| Rect of float * float * float * float
| Bezier of float * float * float * float * float * float
2022-12-15 13:41:19 +01:00
| To of float * float
| Line of float * float
2022-12-16 14:13:55 +01:00
| ClosePath
| SetFill of drawops_colspec
| SetStroke of drawops_colspec
2022-12-15 15:20:41 +01:00
| SetLineThickness of float
| SetLineCap of int
| SetLineJoin of int
| SetMiterLimit of float
| SetDashPattern of float list * float
2022-12-16 13:13:38 +01:00
| Matrix of Pdftransform.transform_matrix
| Push
| Pop
2022-12-16 14:13:55 +01:00
| Fill
| FillEvenOdd
| Stroke
| FillStroke
| FillStrokeEvenOdd
2022-12-21 17:40:13 +01:00
| Clip
| ClipEvenOdd
2022-12-16 17:49:59 +01:00
| SoftXObject of drawops list
| HardXObject of drawops list
2022-12-15 13:41:19 +01:00
val draw : bool -> int list -> Pdf.t -> drawops list -> Pdf.t