home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7117 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.5 KB

  1. Path: sparky!uunet!ogicse!pdxgate!steele!news
  2. From: filibert@vista (Daniel Filiberti)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Changing alpha only?
  5. Message-ID: <1992Nov10.053919.19601@ohsu.edu>
  6. Date: 10 Nov 92 05:39:19 GMT
  7. Article-I.D.: ohsu.1992Nov10.053919.19601
  8. Sender: news@ohsu.edu
  9. Reply-To: filibert@ohsu.edu
  10. Organization: Oregon Health Sciences University
  11. Lines: 32
  12. Nntp-Posting-Host: vista
  13.  
  14. Hi Everybody!
  15.  
  16. Another quirky problem.  I need to mask an area of an image
  17. by changing the alpha value within the area to 1 (for
  18. example) and everything outside the area to (0).  The
  19. catch is that I need to retain the original RGB data within
  20. the whole image (not just the masked area! otherwise
  21. clipping would work!).  I have a path to clip to, easy
  22. enough, but how can I draw only to the alpha channel?  Or,
  23. how do I use some strange combination of compositing
  24. functions to do this?  The images are RGB tiffs, no alpha,
  25. so compositing defaults to an opaque alpha (1, I
  26. think)... 
  27.  
  28. In simpler terms, I need all of the image data, and the
  29. alpha channel to mask a region of interest within
  30. it...easy, right?  Any takers? 
  31.  
  32. Daniel Filiberti 
  33.  
  34. ---
  35. ************************************************************
  36. Motto for a monitor, "It's better to burn out, than to fade
  37.  away..."  [8?)}
  38. ************************************************************
  39.  
  40. Daniel Filiberti
  41. Oregon Health Sciences University
  42. Biomedical Information Communication Center (BICC)
  43. 3181 Sam Jackson Park Road
  44. Portland, Oregon  97201-3098
  45. email:  filibert@ohsu.edu
  46.