caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jean-Baptiste Rouquier" <jb.rouquier@wanadoo.fr>
To: <caml-list@inria.fr>
Subject: [Caml-list] problem with get/draw_image
Date: Tue, 17 Jun 2003 22:13:29 +0200	[thread overview]
Message-ID: <004501c3350d$2cf53420$048cf8c1@zofo> (raw)

I've a problem using the Graphics library under Windows. Precisely,
get_image doesn't seem to work.
lineto and fil_rect work (I didn't take the time to test all the functions),
but I can't use the camlimages library.
Thanks for any help,
Jean-Baptiste.

Here is a code sample :
#load "graphics.cma";;
open Graphics;;
open_graph "";;
moveto 50 10; lineto 10 50;;
 (*I get a line, perfect.*)
let img = get_image 0 0 60 60;;
draw_image img 20 20;;
 (*the line is cut because of the clipped image, but no other line appear.*)



camlimages is able to clip images onto the graphics window, so make_image
and draw_image seem to work (I've also tested them). But when trying to
capture the graphics windows via Graphics.get_image and dump_image, I get
either a black image or a white one (perhaps depending on the size (!)).


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2003-06-17 20:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly 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='004501c3350d$2cf53420$048cf8c1@zofo' \
    --to=jb.rouquier@wanadoo.fr \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).