Setting the transparency color of a bitmap

From: James Dean (m_dorrian_at_yahoo.com)
Date: 07/15/04


Date: Thu, 15 Jul 2004 04:43:06 -0700

I have a method i found for setting the background of a bitmap
transparent but its slow must be an easier way than saving the image
then setting all the pixels to the background color. I tried
graphics.Clear and the transparent color but no luck, anybody got any
suggestions?.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: Bitmap to Icon
    ... What I'm doing is reading an .ico file then converting it to a bitmap which I ... I make the background color transparent then convert it back to ...
    (microsoft.public.dotnet.languages.vb)
  • Having trouble with picture control VS.NET Unmanaged C++.
    ... I've dropped a picture control onto a dialog & loaded a bitmap using a ... The "Transparent" property of the picture ... bitmap somehow to get the background color to be transparent? ...
    (microsoft.public.win32.programmer.ui)
  • Re: How to make an eraser -- need new CompositingMode?
    ... brush of the background color, set the SmoothingMode to AntiAlias and ... My background is alpha 0 (transparent). ... > create a Graphics from that Bitmap, and draw into it a path gradient fill ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Filled polygons print to PDF as opaque
    ... I cross posted this question to the Adobe Acrobat Windows users forum. ... transparent patterns) and the PDF driver uses PostScript to do the heavy ... your implication is that I'm stuck with a bitmap if I want ... Brush m_BG = new SolidBrush; ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: transparency in dlg
    ... I have bitmap loaded as picture control in dlg, ... color which I want to make transparent, ... That's why I often use icons in statics rather than ... same as the CStatic's foreground(if thats what you want). ...
    (microsoft.public.vc.mfc)