RE: transparent primitives

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 24 May 2006 14:04:36 +0200


Hi,

Use SetFillStyle(0) to Draw empty boxes. The semi-transparentcy is available only for pads.

O.Couet

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Gerhard Brandt Sent: Wednesday, May 24, 2006 12:41 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] transparent primitives

hi,

is transparent fill style (4000 ... 4100) for primitives, like TBox, supposed to work?

i want to draw overlapping, half-transparent boxes, but it seems not to be supported?

i tried drawing them directly in the same pad, with fill style 4050, and also in pads on top of each other based on transpad.C, but the boxs on the upper pad are always completely opaque, the transparency is for the background of the pad only, i guess.

also, TColor seems to have GetAlpha(), but no SetAlpha() , so drawing with a transparent color also seems not to be supported?

thanks for help,

gerhard Received on Wed May 24 2006 - 14:05:02 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET