Hi,
gettingstarted-request at lists dot realsoftware dot com wrote:
Subject: Re: Saving picture with mask
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 29 Jan 2005 12:37:56 -0600
At 12:48 AM +0100 1/29/05, FFL wrote:
What i want to do is modify the image with color tint or some other
effect i can obtain onscreen (but cannot understand clearly since
the documentation is quite mute on these calculations...) You can
easily see by yourself : make a canvas, draw an image in its
backdrop, draw something in its backdrop.mask (try a plain light
color, definitely not grey) and admire the effect. Nobody did this
before ? I can't believe this!
You shouldn't be doing it, either. What you're doing is called
"relying on undocumented behavior" and it is a bad thing, because (1)
the undocumented behavior is likely to change with different versions
of RB, and (2) it probably also varies with the operating system
you're running on.
Masks should always be grayscale.
and 3. you will cry when a change will occured (because it always occured at one
time in the future)...
Unfortunately, too many people rely on undocumented features and cry after an OS
change because their application crashes...
HTH,
Emile
PS: I do understand that this undocumented behavior gaves you fun when you use
it. Did you try .Transform map (syntax ?)... see Graphics / RGBSurface for more
information and try it with or without mask (I didn't used a mask) and have fun
with the possible 'solarization' effects...
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|