|
-
Oct 31st, 2008, 08:30 AM
#8
Thread Starter
Lively Member
Re: PNG Transparency, Cannot Overlay
I have put the drawing of the texture/png in the picturebox handle, I think.
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click
OverlayTexture = "\shading.png"
Dim img As Graphics = CreateGraphics()
img.DrawImage(Image.FromFile(OverlayTexture), New Point(0, 0))
End Sub
If this is not how to achieve this, can someone outline for me the steps that need to be taken?
ADDITIONAL NOTE:
I need the original picturebox to move and be clipped by a panel, so that my field of view is limited to the panel area. I am trying to place a shading PNG texture with transparency on top of it.
Thank you in advance for any help.
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
|