Forums
Is there a way to do semi-transparent image overlay? - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: FireMonkey Components (/forum-5.html)
+--- Forum: VideoLab (/forum-18.html)
+--- Thread: Is there a way to do semi-transparent image overlay? (/thread-15.html)



Is there a way to do semi-transparent image overlay? - Ted Wagner - 11-11-2011 04:06 AM

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.


RE: Is there a way to do semi-transparent image overlay? - mitov - 11-13-2011 07:52 AM

(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