cpdf-source/cpdfpng.mli

12 lines
395 B
OCaml
Raw Normal View History

2023-03-20 21:02:10 +00:00
(* PNG files, represented only to the extent required to roundtrip PDF image objects *)
2022-12-23 14:29:47 +00:00
type t =
{width : int;
height : int;
idat : Pdfio.bytes}
2023-03-20 21:02:10 +00:00
(* Read a non-interlaced, non-transparent 24 bit PNG for inclusion in a PDF file. *)
2022-12-23 14:29:47 +00:00
val read_png : Pdfio.input -> t
2023-03-17 19:04:20 +00:00
(* Write a non-interlaced, non-transparent 24 bit PNG from PDF image contents *)
val write_png : t -> Pdfio.output -> unit