Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Working with Pictures


Message #1 by "Vibha Prajapati" <vprajapati@i...> on Wed, 27 Dec 2000 20:18:19 -0000
Hello,

I am working with Pictures, using LeadTools.  I am lost half way in my
project.  Would appreciate anybody who could help me with my question.

Currently, i am able to load the BMP file into my lead control in the VB
program from the database.  I cannot load JPEG file or any other file
types.  How can i make it work for any type of file Format.

My codes goes like...

Private Sub Form_Load()
   LEAD1.AutoRepaint = False
   LEAD1.AutoSetRects = True
   LEAD1.AutoScroll = False
   LEAD1.PaintSizeMode = 3
   LEAD1.PaintWhileLoad = False
   LoadPicture
End Sub

Public Function LoadPicture()

   If txtPicture0 <> "" Then   'txtPicture has the path of the file
      LEAD1.Load txtPicture0, 0, 0, 1
      LEAD1.ForceRepaint
   Else
      LEAD1.Bitmap = 0
      LEAD1.ForceRepaint
   End If

End Function

Also, i am acquring picture from Scanner and Digital Camera using a Twain.
 Once i acquire a picture the picture should get loaded to a temp
directory by default.  How can i make this work.  Any ideas!
(Example....When you scan picture from the scanner by default it gets
saved under C:\MyDocuments\MyPictures\001)

I would really appreciate your help with lead Tools question.  Since i am
beginner with lead tool, have no idea how things work.


Thank You,

Vibha

---
You are currently subscribed to pro_vb as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_vb-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index