Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, August 9, 2005 1:54:58 AM(UTC)
wales140

Groups: Registered
Posts: 2


Hi,

My environment is vb6 and i'm using Leadstools v9.

How can I transfer an image from a vb picturebox control to my LeadControl so that I will be able to save image as .jpg.

Uptill now, I have used the clipboard which is not a perfect solution and I have started to encounter problem with multiple users situation with CITRIX and multiple occurances errors.

Also, I can image to a Windows DC using APIs (CreateCompatibleDC and CreateCompatibleBitmap).

Any help will be appreciated.

Wales140

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, August 11, 2005 5:42:18 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You can use the following code to transfer an image already loaded on a picturbox control to a LEAD OCX control, and then save it as JPEG file format:
+-------------------------------------------------------------------+
Picture1.Picture = LoadPicture("j:\images\1.bmp")
LEAD1.SetPicture Picture1.Image
LEAD1.Save "c:\test.jpg", FILE_JFIF, 24, 2, False
+-------------------------------------------------------------------+

Regards,
Maen Badwan
LEADTOOLS Technical Support

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.074 seconds.