TransparencyKey bug (workaround in KB822495)

T

Timo

I'm using a bitmap as background with a TransparencyKey to give the
impression of a skinned form. The transparent color is not transparent when
deployed to PCs whose color depth is greater than 24bit. The bug workaround
suggested in

http://support.microsoft.com/default.aspx?scid=kb;en-us;822495

has side effects: I get a drag-frame around the outer edge of the form.
Anyone else experience similar behavior?

Thanks
Timo

XP Pro, SP1.
..NET 1.1.4322 SP1
 
T

Timo

Mick,
Thanks for the link. I don't know if a region would suffice to produce a
skinned form--haven't done this sort of programming before. The customer
wants a jaunty, slanted form frame.... a trapezoid turned on its side also
with 3-d effects (rounded "claymation" edges and rounded corners). Wouldn't
the use of many small rectangles to create the slanted edge of the form
border give a very ragged edge rather than a clean sharp line?
Regards
Timo


"Mick Doherty"
 
M

Mick Doherty

You're right that you would end up with jagged edges using this method.
Sounds like you need per pixel alpha. The problem here (or maybe it's not if
you're custom drawing controls anyway), is that this method requires you to
paint everything. This method is usually used for splash screens, but you
should be able to adapt it. This is going to be a lot of work though.
There's an example on codeproject at:
http://www.codeproject.com/cs/media...0&forumid=3270&exp=0&select=627744&tid=286266
 

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