Article View: comp.windows.interviews
Article #436Re: drawing on an Image
From: Mark Linton
Date: Mon, 14 Sep 1992 15:51
Date: Mon, 14 Sep 1992 15:51
14 lines
1286 bytes
1286 bytes
In article <23269@hacgate.SCG.HAC.COM>, howard@aic.hrl.hac.com (Mike Howard) writes: |> How do I make it possible to draw lines on an image? |> I am creating a Raster, in an Image, and I notice that |> Image has some members that take Canvas as an arg. |> Do I instantiate a Canvas and pass it to the image.draw() |> member? I tried creating a deck with an image on the bottom |> and a canvas on top, but I need to make the canvas' background |> invisible, and I haven't figured out how to do that. If what you want is to perform drawing operations on a raster, then that is not currently supported. You would need to define a subclass of Canvas analogous to Printer that sets up the raster's pixmap and avoids double-buffering. Image is a glyph that renders a raster onto a canvas.
Technical Details
Message-ID:
<prfdngk@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!lintonReferences:
<23269@hacgate.SCG.HAC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!sgigate!odin!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Newsgroups: comp.windows.interviews Subject: Re: drawing on an Image Keywords: Image, Canvas, IV3.1b Message-ID: <prfdngk@fido.asd.sgi.com> Date: 14 Sep 92 15:51:10 GMT References: <23269@hacgate.SCG.HAC.COM> Sender: news@fido.asd.sgi.com (Usenet News Admin) Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) Organization: sgi Lines: 14