|
|
#1 (permalink) |
|
Monster Member
Join Date: Dec 2006
Location: the immunity syndicate
Age: 30
Posts: 2,998
Rep Power: 5
|
a current software assignment requires us to create a program where a user can select certain features and it will generate a persons face. im having trouble with adding things like hair to the head without have the transparent images (created in PSP) maintain a white background.
help. |
|
|
|
|
|
|
|
#2 (permalink) |
|
Honorary Member
Join Date: Jan 2007
Posts: 1,021
Rep Power: 3
|
rofl, im doing vb6 atm but nothing near wat u had jus said.
im making an application form which allows the user to save his data then calc prices for product etc.. urs seems hard cant help u cuz im programming noob |
|
|
|
|
|
#3 (permalink) |
|
Contributing Member
|
http://www.codeguru.com/csharp/.net/...cle.php/c4661/
It's for .net but it should work. The magic of google for everything programming related Edit: Apparently it won't work for vb6. Try this http://en.allexperts.com/q/Visual-Ba...re-Boxes-1.htm That's pretty loltastic |
|
|
|
|
|
#4 (permalink) | |
|
Monster Member
Join Date: Dec 2006
Location: the immunity syndicate
Age: 30
Posts: 2,998
Rep Power: 5
|
Quote:
|
|
|
|
|
|
|
#6 (permalink) |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
You want the white parts to be transparent? You'll need to generate a mask for the picture. Something like this:
PHP Code:
PHP Code:
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|
|
|
#7 (permalink) |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
Due to the extreme lack of syntax highlighting capabilities of these forums I've uploaded the project.
This example is one I wrote for someone on vbforums.com. http://www.cdeliasoftware.com/transparent.zip Run the project, and click the button.. the black is transparent'ed. chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|
|
|
#8 (permalink) | |
|
Monster Member
Join Date: Dec 2006
Location: the immunity syndicate
Age: 30
Posts: 2,998
Rep Power: 5
|
Quote:
btw, what am i changing to get the black transparency to white transparency? does it also matter whether its a picture or image box? Last edited by FuRbY*; 04-06-2007 at 06:40 PM.. |
|
|
|
|
|
|
#9 (permalink) |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
Changing it from black to white is as simple as changing the last 0 in the example I gave you, to RGB(255,255,255).
ImageBoxes are terrible controls. PictureBoxes, are basically a movable Device Context. ImageBoxes can load Pictures with transparency.. but you cannot change the contents of an ImageBox. PictureBoxes can't load with transparency, but you can change the contents of the picturebox. So to answer your question.. yes, it MUST be a PictureBox for that particular piece of code to work. chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|






