cpdf-source/cpdfpng.mli

12 lines
336 B
OCaml
Raw Normal View History

2022-12-23 15:29:47 +01:00
type t =
{width : int;
height : int;
idat : Pdfio.bytes}
(* Read a non-interlaced, non-transparent 24 bit PNG for inclusion in a PDF
file. Raises BadPNG on failure. *)
val read_png : Pdfio.input -> t
2023-03-17 20:04:20 +01:00
(* Write a non-interlaced, non-transparent 24 bit PNG from PDF image contents *)
val write_png : t -> Pdfio.output -> unit