Results 1 to 3 of 3

Thread: OCR - Picturebox Transparent Background

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    24

    OCR - Picturebox Transparent Background

    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.

  2. #2
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    maybe i got this wrong but if you want to scan the picturebox for all colors except one do this:

    VB Code:
    1. If Color <> BGColor Then
    2.     'Your code
    3. End If

    where 'Color' is the current pixel and 'BGColor' is the color of the background
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Posts
    16
    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

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