Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Yea, that's a crazy title.

I was messing around with VB and pictureboxes. I was wondering that if I had a picturebox1 and on top of that picturebox2. Lets say that picturebox2 was just a white image. Is there a link somewhere for an example to erase parts of picturebox2 so that picturebox1 starts to show up?

You all know more than me so best to ask here at this point. Did do some searching but I may be wording my search wrong.

all help is appreciated. :)

What I have tried:

Have not tried anything yet. I'm just trying to find a path to work it all out.
Posted
Updated 8-Oct-21 22:08pm

1 solution

You can use the ARGB model : RGBA color model - Wikipedia[^] to create the colour. By setting the alpha channel to set the opacity of the colour, which allow the image beneath it to show through. See also Change Opacity of Image in C#[^] (it's C# but the basics ar the same in VB.NET).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900