Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to do semi-transparent image overlay?
11-11-2011, 04:06 AM
Post: #1
Is there a way to do semi-transparent image overlay?
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-13-2011, 07:52 AM
Post: #2
RE: Is there a way to do semi-transparent image overlay?
(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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)