Page 1 of 1
[11 Nov 2006] Transparency
Posted: Sat Jun 13, 2020 5:31 pm
by lazi
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 11 Nov 2006 16:11:04 +0100
Hi!
I am failed to use
DisplayTextObject() on an alphachannel after
SelectAlphaChannel(). However I can use drawing functions successfully for this purpose.
I'd like to make transparent brushes with 0% transparent text on it. Is it possible somehow?
[12 Nov 2006] Re: Transparency
Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 12 Nov 2006 23:08:27 +0100
Hi!
I am failed to use
DisplayTextObject() on an alphachannel after
SelectAlphaChannel(). However I can use drawing functions successfully for this purpose.
I'd like to make transparent brushes with 0% transparent text on it. Is it possible somehow?
In German I would answer "Jein", which is a mixture of "Ja" (yes) and "Nein" (no).
The problem is that
SelectAlphaChannel() currently always draws to the alpha channel with the intensity specified with
SetAlphaIntensity(). Thus, you cannot copy any arbitrary alpha channel data from a text object to the alpha channel of a brush.
What you can do, however, is to create a full brush copy of a text object by using
GetBrushLink().
GetBrushLink() in Hollywood 2.0 does NOT create a link as the very name suggests, but creates a full copy of the source object. So you could convert your text object to a brush including alpha channel.
In Hollywood 2.5 which will be released soon (hint, hint), there are two new functions which are more helpful:
Code: Select all
; the special value #VANILLACOPY will do a 1:1 copy of alpha channel
; data which is exactly what you want
SetAlphaIntensity(#VANILLACOPY)
; converts any object to a brush
ConvertToBrush()