🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1091

Making a Bitmap from a Graphic

#1091
From: Gary Schiltz
Date: Tue, 07 May 1991 13:36
34 lines
1900 bytes
I'm using InterViews 2.6 on an application in which I'm "dragging"
arbitrary Graphic instances around within a parent Picture, which
is the graphic of a GraphicBlock.  I use a Rubband or one of its
subclasses for visual feedback in places where performance is too
slow to animate the movement of the dragged graphic.  In the special
case where the graphic is a Stencil, visual feedback is provided by
changing the cursor of the graphic block to the Bitmap and mask used 
to create the Stencil.  In other cases, feedback is provided by 
repeatedly incurring damage on the graphic, translating it and 
repairing the damage.

I would like to be able to drag the graphics between graphic blocks.
This will work fine for the Stencil case, as I could set the cursor
of the World using the bitmap of the dragged graphic.  For the other
cases (Rubband and animation by translation/redraw), I would lose the 
visual feedback when I leave the area above the graphic block.  

It seems that what I need is some way to create a bitmap from a 
graphic, so I could use the bitmap to create a cursor.  Has anyone
done this?  Or, does anyone have any other ideas how to create a
cursor from an arbitrary graphic?  I'm most interested in the case
of dragging a Label from one graphic block to another, but would
be interested in seeing a more general purpose solution.

Many thanks in advance,

----

Gary Schiltz
EDS Research and Development
3551 Hamlin Rd., 4th Floor
Auburn Hills, MI  48326
(313) 370-1737
gss@edsdrd.eds.com
Technical Details
Message-ID: <324@dominion.edsdrd.eds.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edsews!edsdrd!gss

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!edsews!edsdrd!gss
From: gss@edsdrd.eds.com (Gary Schiltz)
Newsgroups: comp.windows.interviews
Subject: Making a Bitmap from a Graphic
Message-ID: <324@dominion.edsdrd.eds.com>
Date: 7 May 91 13:36:41 GMT
Organization: Research and Development, Auburn Hills, MI  48326
Lines: 34