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 : Thursday, March 29, 2012 1:05:56 AM(UTC)

Flood  
Flood

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.
 

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, March 29, 2012 7:37:22 AM(UTC)

mohamed  
mohamed

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.

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