From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA19266; Tue, 17 Jun 2003 22:15:39 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA19591 for ; Tue, 17 Jun 2003 22:15:37 +0200 (MET DST) Received: from mwinf0104.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.30]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h5HKFaT20577 for ; Tue, 17 Jun 2003 22:15:36 +0200 (MET DST) Received: from zofo (unknown [193.248.140.4]) by mwinf0104.wanadoo.fr (SMTP Server) with SMTP id A57A01BFB3F3 for ; Tue, 17 Jun 2003 22:15:35 +0200 (CEST) Message-ID: <004501c3350d$2cf53420$048cf8c1@zofo> From: "Jean-Baptiste Rouquier" To: Subject: [Caml-list] problem with get/draw_image Date: Tue, 17 Jun 2003 22:13:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam: no; 0.00; lineto:01 camlimages:01 img:99 black:98 images:98 dump:01 precisely:02 cma:03 library:03 let:04 functions:05 clip:94 graph:05 white:93 load:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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