Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, December 17, 2006 6:04:10 AM(UTC)


Groups: Registered
Posts: 11

 CWnd m_ImgWnd;

 LBitmapWindow m_LeadImgWnd;

LRasterPaintWindow  *  m_RasterPntWnd;
 m_LeadImgWnd.Create(_T("STATIC"), _T(""), WS_CHILD | WS_VISIBLE,
  CRect(0, 0, 300, 300), this, 1234);



 int res
 m_RasterPntWnd = new LRasterPaintWindow;
 res = m_RasterPntWnd->Initialize();
 res = m_RasterPntWnd->SetBitmap( &m_BitmapImg );
 res = m_RasterPntWnd->SetWndHandle( m_LeadImgWnd.GetSafeHwnd() );


my question:Can I write code like this  res = m_RasterPntWnd->SetBitmap( &m_BitmapImg );?

but it can not display the image.only  m_BitmapImg.SetPatternBackColor(RGB(255,247,220)); works.


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 : Monday, December 18, 2006 6:53:15 AM(UTC)

Adnan Ismail  

Groups: Guests
Posts: 3,022

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

You can pass a LBitmapWindow object to
LRasterPaintWindow::SetWndHandle because it's derived from LBitmapBase.
However, the bitmap should be drawn in the RasterPaint window, not the LBitmapWindow itself.

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