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, January 15, 2013 11:48:57 PM(UTC)
dkrijnen

Groups: Registered
Posts: 22


Is there a way to work with the controll synchronous (currently asynchronous)? We will need to convert multiple xa multiframe images and need to continue the process only when all have been converted.
 

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 : Wednesday, January 16, 2013 6:44:10 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


One way to do that is to implement the Complete event of convert control and define a Boolean variable describes the status of the conversion like this:
+=====================================================================+
bool done;
private void button1_Click(object sender, EventArgs e)
{
done = false;
convertCtrl1.SourceFile = "IMAGE1.dcm";
convertCtrl1.TargetFormat = TargetFormatType.AVI;
convertCtrl1.TargetFile = "result.avi";
convertCtrl1.StartConvert();
           
while (!done)
{
Application.DoEvents();
}
}
private void convertCtrl1_Complete(object sender, EventArgs e)
{
done = true;
}
+=====================================================================+
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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.046 seconds.