On Jun 14, 2006, at 06:10 UTC, Emile Schwarz wrote:
> What I forget to do is to place the BlueMap in another location (either
> at the Red or Green location).
That would preserve the Red or Green channel.
> But maybe the concept was wrong - in my mind - and the map just contains
> values that represent a % of the color there (% of a color, not a Red
> value; % of the color who can be Red, Green or Blue depending on the
> location of the map atom)...
Yes, that's it exactly. In fact, rather than defining a RedMap, GreenMap, and
BlueMap as you did in your example, I usually name my maps based on what they
do (rather than where I intend to use them). So I'd have:
Dim ZeroMap(255) as Integer // maps all values to zero
Dim IdentityMap(255) as Integer // maps every value to itself
Dim InvertMap(255) as Integer
for i as Integer = 0 to 255
ZeroMap(i) = 0
IdentityMap(i) = i
InvertMap(i) = 255-i
next
And then when I call .Transform, I pass in whichever map I want to apply to
each channel. In your example, that would have been surf.Transform( ZeroMap,
ZeroMap, IdentityMap ).
Best,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>