This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 14, 2006 11:36:40 AM(UTC)
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.
#2
Posted
:
Tuesday, November 14, 2006 10:31:07 PM(UTC)
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)
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.