|
-
Oct 30th, 2008, 01:42 PM
#1
Thread Starter
Lively Member
[RESOLVED] PNG Transparency, Cannot Overlay
Hello,
I've been wrestling with this for a few days now, and I'm not finding any solutions as of yet. I see a few people struggling with the same thing though, so I don't feel so bad.
-----------------------------------------
Overlay Texture Image (PNG)
OverlayTexture = "\shading.png"
Dim img As Graphics = CreateGraphics()
img.DrawImage(Image.FromFile(OverlayTexture), New Point(25, 160))
-----------------------------------------
This code throws the PNG up there fine with teh transparency portion looking good, as long as it's out away from my Picturebox contained inside a Panel.
When it intersects with the very image I'm trying to overlay, it just goes behind the panel/picturebox.
If I include it within the Picturebox at design time, I get the gray, and not transparent, background, so I'm attacking it at run-time. I saw some hints in other forums that this would be the approach to try.
Anyway, if anyone has any input on something to try, I would be very appreciative.
Humbly,
J
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|