Forums

Full Version: Is there a way to do semi-transparent image overlay?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using Delphi 7 and having good progress so far with my project.

One of the things I need to do is draw a simple "see-through" shape, where I can set the degree of transparency between 0 (opaque) and 100% (truly transparent).

I've explored the VLDraw class, in particular the DrawPictureLayer, but I haven't found how (or whether) this can be done.
(11-11-2011 04:06 AM)Ted Wagner Wrote: [ -> ]One of the things I need to do is draw a simple "see-through" shape, where I can set the degree of transparency between 0 (opaque) and 100% (truly transparent).

I've explored the VLDraw class, in particular the DrawPictureLayer, but I haven't found how (or whether) this can be done.

Hi Ted,

You have multiple options:
1. You can add DrawPictureLayer to the VLDraw class and select image with Alpha channel (PNG as example)

2. You can use the VLApplyMask component and select image with Alpha channel (PNG as example)

3. You can use image generator with selected image in it, and connect to VLCombine or VLVideoMixer then select mixing levels.

4. You can even do it in custom painting - take a look in the CustomPaintDemo.

With best regards,
Boian Mitov
Reference URL's