ocaml-imagelib icon indicating copy to clipboard operation
ocaml-imagelib copied to clipboard

Add examples

Open klartext opened this issue 4 years ago • 1 comments

Please add examples for the base use cases, for example reading and writing an image and analyzing image data.

klartext avatar Aug 01 '20 21:08 klartext

If you have some concrete ideas we could add those to an examples/ directory; I'd be in favor of that.

For now, see the newly merged code:

  • imagetool reads and writes pictures, amongst other functionality.
  • basic unit test shows how to create an image and convert it to a PNG file byte string (and reading it back)
  • Image.compare shows how to deal with the pixel data.

cfcs avatar Aug 22 '20 13:08 cfcs