🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1418

Changing alpha only?

#1418
From: Daniel Filiberti
Date: Tue, 10 Nov 1992 05:39
32 lines
1579 bytes
Hi Everybody!

Another quirky problem.  I need to mask an area of an image
by changing the alpha value within the area to 1 (for
example) and everything outside the area to (0).  The
catch is that I need to retain the original RGB data within
the whole image (not just the masked area! otherwise
clipping would work!).  I have a path to clip to, easy
enough, but how can I draw only to the alpha channel?  Or,
how do I use some strange combination of compositing
functions to do this?  The images are RGB tiffs, no alpha,
so compositing defaults to an opaque alpha (1, I
think)... 

In simpler terms, I need all of the image data, and the
alpha channel to mask a region of interest within
it...easy, right?  Any takers? 

Daniel Filiberti 

---
************************************************************
Motto for a monitor, "It's better to burn out, than to fade
 away..."  [8?)}
************************************************************
 
Daniel Filiberti
Oregon Health Sciences University
Biomedical Information Communication Center (BICC)
3181 Sam Jackson Park Road
Portland, Oregon  97201-3098
email:  filibert@ohsu.edu
Technical Details
Message-ID: <1992Nov10.053919.19601@ohsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!pdxgate!steele!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!pdxgate!steele!news
From: filibert@vista (Daniel Filiberti)
Newsgroups: comp.sys.next.programmer
Subject: Changing alpha only?
Message-ID: <1992Nov10.053919.19601@ohsu.edu>
Date: 10 Nov 92 05:39:19 GMT
Article-I.D.: ohsu.1992Nov10.053919.19601
Sender: news@ohsu.edu
Reply-To: filibert@ohsu.edu
Organization: Oregon Health Sciences University
Lines: 32
Nntp-Posting-Host: vista