swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing on ZoomRasters


From: Marcus G. Daniels
Subject: Re: Drawing on ZoomRasters
Date: 02 Jul 1999 07:40:42 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3.11

>>>>> "CS" == Carl Scheffler <address@hidden> writes:

CS> Is it possible to access the raster directly and to draw a 'thin'
CS> line pixel by pixel and if so, how?

How about subclassing Raster instead of ZoomRaster, using coordinate
multiplication (or not) as appropriate per your routine and a zoom variable.

What does your line drawing routine do that is different?  Maybe it
should go in ZoomRaster?

CS> I've noticed that a line drawn on a ZoomRaster using the 
CS> lineX0:Y0:X1:... method remains a nice thin line, even if the 
CS> zoomfactor is quite high. 

Note that -lineX0:Y0:X1:Y1:Width:Color: also has a pen width argument,
so passing [raster getZoomFactor] as the width argument will make
line get wider per the zoom.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]