From: Claude Marche MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15457.21787.141067.797728 at mailhost.lri.fr> Date: Wed, 6 Feb 2002 17:08:59 +0100 To: lablgtk at kaba.or.jp Cc: Subject: drawing non rectangular pixmaps Hi all, I would like to draw, using GDraw.pixmap#put_pixmap, a non rectangular pixmap inside a larger one. By non rectangular, I mean that some pixels are "transparent", in the sense that in the pixmap file, their color is "None". My attempt does not work, every transparent pixel is displayed as white, hiding the pixel that may have been there before. Roughly, my program is : let small_image = GDraw.pixmap_from_xpm "small_image.xpm" in let draw_area = (top_window#draw_area : GMisc.pixmap) in draw_area#pixmap#put_pixmap ~x:200 ~y:100 ~xsrc:0 ~ysrc:0 ~width:32 ~height:32 small_image#pixmap; draw_area#misc#draw None Could anybody help me? Thanks in advance for any hint - Claude -- | Claude Marché | mailto:Claude.Marche@lri.fr | | LRI - Bât. 490 | http://www.lri.fr/~marche/ | | Université de Paris-Sud | phoneto: +33 1 69 15 64 85 | | F-91405 ORSAY Cedex | faxto: +33 1 69 15 65 86 |