LEADTOOLS Support
Imaging
Imaging SDK Questions
About Construct a LBitmap object from LBitmapWindow obJect.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 29, 2012 1:05:56 AM(UTC)
Groups: Registered
Posts: 11
how to construct a LBitmap object from LBitmapWindow obJect?,and let LBitmap object and LBitmapWindow obJect hold their own data.
my code is like this:
pBITMAPHANDLE hBitmap;
hBitmap=m_LBitmapWnd.GetHandle();
LBitmap LeadBitmap(hBitmap);
//use the object as a parameter:
m_edtThumWnd.SetLBitmapHandle(LeadBitmap);
the problem is that,the LeadBitmap is ok, but the m_LBitmapWnd is crashed,because they use a same handle.
#2
Posted
:
Thursday, March 29, 2012 7:37:22 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
You should copy the image and not just make them use the same bitmap. To do that, use the LBitmapBase::Copy() function.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
About Construct a LBitmap object from LBitmapWindow obJect.
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.