PDA

Click to See Complete Forum and Search --> : OCR - Picturebox Transparent Background


pounce
Dec 3rd, 2002, 12:36 PM
I need to find a way of making a picturebox with a transparent background.

The purpose is to let a user see a letter 'A' and trace over it.
The program will then recognize whether the user has traced the pattern correctly.

I have the ocr done. I just need a way of transposing a pattern onto the picturebox without interfering with the ocr.

Thanks for all the help.

cyborg
Dec 3rd, 2002, 12:41 PM
maybe i got this wrong but if you want to scan the picturebox for all colors except one do this:


If Color <> BGColor Then
'Your code
End If


where 'Color' is the current pixel and 'BGColor' is the color of the background

DOE
Dec 3rd, 2002, 08:47 PM
The best way (that I can think of) is to make a mask of the sprite. www.vbexplorer.com has a wonderful turorial on gaming that should help.

Doe