Results 1 to 2 of 2

Thread: Complex Transparency L O O K A T M E

  1. #1

    Thread Starter
    Member wej42's Avatar
    Join Date
    May 2002
    Location
    Rhode Island, USA
    Posts
    48

    Complex Transparency L O O K A T M E

    Hey,
    on a black background w/ a white background pic:
    dim i as bitmap = <path>
    i.maketransparent(white)

    but.. if u do this w/ a green, red, ornage etc background w/ a white background pic:
    it dont work.


    HELP PLZ!

    thanks
    Visual Basic 6.0, Visual Basic .NET, C#, C++, ASM, HTML

  2. #2
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169
    You have to know the color you want to set to transparent. You can set up a property that will allow you to dynamically change the color, but somewhere on your user interface or in code you will have to determine what that color is.

    Or you could try to get a pixel that is in the background and make that the transparent color. Like Bitmap.GetPixel(1,1), but the problem with that is you may not be able to make sure you hit the background; you may hit the foreground instead.

    Hope this helps.
    That which does not kill us, only makes us stronger.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width