Help picturebox c#

I created two pictureboxes, C#, I want when the images collide, there is an overlap, because one of the pictureboxes covers the other, not with the image, but with the square of the picturebox (the transparent background that covers the other pictutebox), I cannot use picturebox.Parent, because one of the pictureboxes must follow the other, and therefore if I used picture.Parent, I would have to enlarge one picturebox because otherwise you would not see the other one, but if I enlarge the other one, the picturebox that he has to chase, obviously stops before the image. In simple terms: I want a picture box with perfect shape, not a square, can anyone help me?
7 Replies
not guilty
not guilty5mo ago
why do pictureboxes have to overlap?
Ultimate Riser
Ultimate Riser5mo ago
Ultimate Riser
Ultimate Riser5mo ago
(sorry for the delay)
not guilty
not guilty4mo ago
the easiest way to do that is if you have the image with a transparent background (so with an alpha channel) then you should be able to set the picturebox to respect the transparency
Ultimate Riser
Ultimate Riser4mo ago
It's setted to transparent Wait, backcolor != Background, right?
not guilty
not guilty4mo ago
i should try to do it myself, i don't remember the exact settings rethinking about it, if you need that kind of transparency+overlapping either you draw the images yourself or you can try using just the 2d graphics features from opengl/directx
Ultimate Riser
Ultimate Riser4mo ago
what in a form?
Want results from more Discord servers?
Add your server
More Posts