🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6940

Re: How to draw a Region around a rando

#6940
From: bhyde
Date: Mon, 25 Aug 1986 14:05
19 lines
1541 bytes
 If you want to catch mouse down events that hit, or nearly hit, 
parts of your drawings do not use regions.
  Regions are very memory intensive.  They are a scan line
representation.  The only compression is for vertical rectangular
sections.  The incremenal cost of building up a complex region
is almost always very high because it causes a lot of memory
manager thrashing.
  A very tractable way to check for a mouse down on your drawing
is to draw it into an off screen bit map.  Watch that bit
map for any bits near the mouse changing.
  The offscreen bit map maybe very small, and you can offset it
until only the area around the mouse is actually being filled out.
  Real power pixel people might grab the bottle neck procs and
modify the drawing stream to only use black paint.
  This is very very fast.  In one of my applications I do it inside
the event loop to change cursor shape dynamicly.  It works well for
hundred part drawings.
   - ben hyde, cambridge
Technical Details
Message-ID: <26700067@inmet>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!pyrnj!mirror!gabriel!inmet!bhyde
References: <4848@decwrl.DEC.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!pyrnj!mirror!gabriel!inmet!bhyde
From: bhyde@inmet.UUCP
Newsgroups: net.micro.mac
Subject: Re: How to draw a Region around a rando
Message-ID: <26700067@inmet>
Date: Mon, 25-Aug-86 10:05:00 EDT
Article-I.D.: inmet.26700067
Posted: Mon Aug 25 10:05:00 1986
Date-Received: Wed, 27-Aug-86 10:03:18 EDT
References: <4848@decwrl.DEC.COM>
Lines: 19
Nf-ID: #R:decwrl.DEC.COM:-484800:inmet:26700067:000:971
Nf-From: inmet.UUCP!bhyde    Aug 25 10:05:00 1986