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
Printable View
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
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. :D