Semi-transparent form using alpha-PNG background

J

James Arnold

I am trying to use a semi transparent PNG as the form background,
allowing you to see through certain parts. The intention is similar to
a skinnable form like launchy, with semi-transparent pixels (not
just .MakeTransparent or Form.Opacity). Also similar to the Adobe
splash screens which the feather and drop shadow.

By overriding the OnPaint method and manually drawing a PNG onto the
form background I can achieve this effect, but it does not update when
the form is moved or content under the form changes. Invalidating the
form simply repaints the drop shadow and any other semi-transparent
pixels over the existing ones, causing those parts to darken.

An example: http://www.launchy.net/images/screenshot_sheep.jpg (the
vista-like border).

Thanks in advance,
James.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top