Article View: comp.lang.postscript
Article #4257Re: how should imagemask display?
From: Glenn Reid
Date: Mon, 17 Dec 1990 03:49
Date: Mon, 17 Dec 1990 03:49
26 lines
1813 bytes
1813 bytes
In article <9313@cg-atla.UUCP> bradlee@cg-atla.UUCP (Rob Bradlee) writes:
>If I have an image that is displayed with the imagemask operator, what
>should it look like on a screen diplay. It seems to me that if I
>put it over a solid block of color that the color should show through
>the non-black pixels. However, one of our systems in development is
>making the non-black pixels white. Your opinions, please.
My opinion is that the non-black pixels should show through. That's
the whole point of "imagemask". In fact, the pixels in "imagemask"
are not actually colored, they are a mask through which you pour the
current color from the graphics state onto the current page or screen
or frame buffer or whatever. The semantics of a mask imply that there
will be places where no color is applied.
I'd say you have a bug in your system in development.
Make sure you have the "invert" parameter to "imagemask" set the way
you intend (in fact, try reversing it if you're not sure). This could
reverse the sense of your test and paint the wrong thing. But other
than that, your impression seems right to me.
/Glenn
--
Glenn Reid RightBrain Software
glenn@heaven.woodside.ca.us PostScript/NeXT developers
..{adobe,next}!heaven!glenn 415-851-1785
Technical Details
Message-ID:
<370@heaven.woodside.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!heaven!glennReferences:
<9313@cg-atla.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!heaven!glenn From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.lang.postscript Subject: Re: how should imagemask display? Keywords: imagemask display Message-ID: <370@heaven.woodside.ca.us> Date: 17 Dec 90 03:49:13 GMT References: <9313@cg-atla.UUCP> Reply-To: glenn@heaven.woodside.ca.us (Glenn Reid) Distribution: comp Organization: RightBrain Software, Woodside, CA Lines: 26