caml-list - the Caml user's mailing list
 help / Atom feed
From: "Janne Hellsten" <jjhellst@gmail.com>
To: caml-list@inria.fr
Subject: Portable PNG exporter
Date: Sat, 20 Sep 2008 20:37:22 +0300
Message-ID: <700d600f0809201037x3358a788v818d488c451ce7bf@mail.gmail.com> (raw)

Hi list,

While working on a graphics related problem, I needed to save the
contents of a Graphics framebuffer to a .png file.  Quick googling for
"ocaml png" didn't bring up any results for libraries that would be
easy to install via GODI.  I am aware of CamlImages but unfortunately
I have never been successful at installing it due its heavy dependence
on external libraries.  I also often work on Windows and installing
external OCaml libraries on Windows is usually a major PITA (if
possible at all).

I decided to write a simple self-contained .png exporter that wouldn't
depend on any external libraries (not even libpng or zlib).  I thought
someone else might benefit from this piece of code and I thus made it
freely available here:

http://code.google.com/p/aihiot/source/browse/trunk/gfx/save_bitmap/ocaml/png.ml

Janne


             reply index

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-20 17:37 Janne Hellsten [this message]
2008-09-20 23:03 ` [Caml-list] " Richard Jones
2008-09-22 15:00   ` Janne Hellsten
2008-09-22 15:57     ` Daniel Bünzli
2008-09-22 18:49   ` Florent Monnier
2008-09-20 23:46 ` Jon Harrop
2008-09-21 19:50 ` malc
2008-09-21 20:02   ` Janne Hellsten

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=700d600f0809201037x3358a788v818d488c451ce7bf@mail.gmail.com \
    --to=jjhellst@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox