[11 Nov 2006] Transparency

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[11 Nov 2006] Transparency

Post 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?
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[12 Nov 2006] Re: Transparency

Post 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()
Locked