Results 1 to 4 of 4

Thread: Image Control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    Image Control

    Hi Everyone,

    I am currently using the Kodak Image Scan control to scan a picture from a scanner. Once the picture has been scanned I would like the picture to be displayed inside of an image control box on the Visual Basic form. Any ideas on how to go about doing this? I would appreicate any help. Thanks.

    Ace

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    I havent got a scanner on my system so i cant test this but below are two suggestions, let me know if either of them work.


    Method 1:
    This line should be run before your call StartScan or equivilent.
    Replace ImgScan1 with the name of your Kodak Scan Control and replace Image1 with the name of your Image Control
    Code:
    ImgScan1.DestImageControl = Image1

    Method 2:
    This line should be run after the scan has been completed, i.e. on the ScanDone event of the Kodak Scan Control.
    Again replace ImgScan1 with the name of your Kodak Scan Control and replace Image1 with the name of your Image Control
    Code:
    Image1.Image = ImgScan1.Image

    As i said i cant test these so please give me some feed back on whether they work or not.

    Grant French
    [email protected]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759
    Hi gfrench,

    Thanks for your response. Neither of those two options were successful though. Does anyone have any other ideas as to how to get the scanned image to appear in an image box after it has been scanned. Thanks for any help.

  4. #4
    Member tsoftonline's Avatar
    Join Date
    Aug 2001
    Posts
    42
    I believe that we made an in-house photo editing program using the Kodak controls. I wasn't part of it, but there should also be a Kodak Photo Editing control. Make that invisible, transfer the scanned kodak image into the edit control and then option 2 (above) should work. Can't test it though, sorry.

    ex:

    Image1.Picture = Kodakphotoedit1.Image (????)
    Executive Project Director
    Technosoft Enterprises

    Any of my opinions stated on this or any other forums do not represent the official policy of Technosoft Enteprises, unless otherwise specified.

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