home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8414 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!vincent1.iastate.edu!jnpotts
  3. From: jnpotts@iastate.edu (James N. Potts)
  4. Subject: Re: Can you overlay graphics without obscuring the lower ones?
  5. Message-ID: <jnpotts.727658850@vincent1.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames IA
  8. References: <1993Jan21.144229.23421@sun1x.actc.res.utc.com>
  9. Date: Thu, 21 Jan 1993 23:27:30 GMT
  10. Lines: 29
  11.  
  12. In <1993Jan21.144229.23421@sun1x.actc.res.utc.com> pek@logos.res.utc.com (Paul Kirschner) writes:
  13.  
  14. >Is there a way to overlay graphic figures (circles, rectangles, etc.)
  15. >so that the underlying figure "bleeds through" the top one?
  16.  
  17. >I want to make a "business presentation" type bar chart where
  18. >succeeding years are overlaid.  However, the top bar totally obscures
  19. >the one behind it - even with a stripped pattern.  I want to use a
  20. >stripped pattern so that the lower one shows through.
  21.  
  22. >I can make the same effect "by hand" by drawing the top rectangle
  23. >directly and stripping it line by line.  Unfortunately this is
  24. >resolution dependent for the line spacing.  It would be MUCH easier to
  25. >use the built-in fill patterns and have the BGI do the work!
  26.  
  27. >Anyone solved this?
  28.  
  29. Here's one thing that you could do.  After drawing the first figure, draw
  30. the one that would go on top off screen, say to a different graphics page.
  31. Then, do a getimage of the new (offscreen) image, and do an OR putimage to
  32. the screen.  This would let the old figure show through the new.
  33.  
  34. James.
  35.  
  36. -- 
  37. _____________________________________________________________________
  38. James N. Potts          |  "To err is human.  To get multiple UAE's 
  39. jnpotts@iastate.edu     |   requires MS Windows."
  40. tabp6@isuvax.iastate.edu|                      - Me
  41.