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, November 14, 2006 11:36:40 AM(UTC)
anna168421

Groups: Registered
Posts: 11


Hi,

   I use LBitmapWindow::Load to load images depending on the selection in a grid containig an image list. The first image is supposed to be painted right after LBitmapWindow is initialized. Despite the success of the first image loading - it's not shown. It will be shown all right if I select some other image, and then return to the first one.

LBitmapWindow m_imageView;

ShowImage()
{
 ::ShowWindow(m_imageView.GetBitmapWnd(), SW_SHOW);
 Invalidate();

 int ret = m_imageView.Load((L_CHAR L_FAR *) filename);

 m_imageView.SetZoomMode(ZOOM_FIT, TRUE); 
 L_UINT perc = m_imageView.GetZoomPercent();
 if (perc > 100)
 {
  m_imageView.SetZoomMode(ZOOM_NORMAL, FALSE);
 }

 m_imageView.SetToolType(TOOL_PANIMAGE);
}

It is as if some other LBitmapWindow is called after this code is called for the first time enabling to see subsequent images. However, I don't observe it in the rest of the code.

 

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 : Tuesday, November 14, 2006 10:31:07 PM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

Which version of LEADTOOLS are you using?

Try calling LBitmapWindow::EnablePaintWhileLoad() before loading the image and pass TRUE.

 
#3 Posted : Wednesday, November 15, 2006 6:49:22 AM(UTC)
anna168421

Groups: Registered
Posts: 11


Never mind: it was my error unrelated to LEAD TOOLS. I appreciate the prompt reply though [:)]

 
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.055 seconds.