Re: Alpha Blended Windows in Vista and XP



So if my bitmap has alpha channel it will be blended on the screen?

Jeff


"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:OhBMuuvNHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
I am using the SetLayeredWindowAttributes function to create a irregular
shaped window using a Bitmap on a form with a transparency color. This
works great but I would like to get rid of the jagged edges that show on
the
screen.

Does anyone know of a way to alpha blend the edges of a window with its
background?

You need to use a Bitmap with an alpha channel.
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/



.



Relevant Pages

  • Re: Alpha Blended Windows in Vista and XP
    ... shaped window using a Bitmap on a form with a transparency color. ... works great but I would like to get rid of the jagged edges that show on the ... Does anyone know of a way to alpha blend the edges of a window with its ... You need to use a Bitmap with an alpha channel. ...
    (microsoft.public.vb.winapi.graphics)
  • Alpha Blended Windows in Vista and XP
    ... shaped window using a Bitmap on a form with a transparency color. ... works great but I would like to get rid of the jagged edges that show on the ...
    (microsoft.public.vb.winapi.graphics)
  • Alpha Blended Windows in Vista
    ... shaped window using a Bitmap on a form with a transparency color. ... works great but I would like to get rid of the jagged edges that show on the ...
    (microsoft.public.vb.winapi)
  • Re: GdipCreateHBITMAPFromBitmap + PixelFormat32bppARGB
    ... When you call GetHBITMAP and the bitmap has an alpha channel, ... you will get a bluish tint in the areas where the bitmap is transparent. ... public static extern bool AlphaBlend( ... public static extern IntPtr SelectObject ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: GdipCreateHBITMAPFromBitmap + PixelFormat32bppARGB
    ... > you will get a bluish tint in the areas where the bitmap is transparent. ... Are you suggesting that GDI+ uses the AlphaBlend GDI function in its ... premultiplying the alpha channel would be that the pixels would simply be too ...
    (microsoft.public.dotnet.framework.windowsforms)