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 : Friday, December 18, 2009 7:53:38 AM(UTC)

Elena  
Elena

Groups: Registered
Posts: 7


Hi, i am trying LT 16.5 Vector Pro.
Is possible add vector overlay on raster image using C++?
The example "Vector and Raster overlay demo" is good for me, but i need to build it with C++.
I use very large images (400MB-900MB) and I need these images are loaded and handled quickly.
Thanks!
 

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 : Sunday, December 20, 2009 12:16:54 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

There are two ways to do this:
(1) Load the raster image using the LBitmap::Load function and paint it on the viewer DC using the LPaint::PaintDC function. Then you need to load the vector image using the LVectorBase::Load function and paint it using the LVectorBase::Paint function on the viewer DC.

(2) Load the raster image using the LBitmap::Load function and paint it on the viewer DC using the LPaint::PaintDC function. Then, use the LBitmapBase::CreateLeadDC to create a Microsoft Windows device context using the LBitmapBase objects bitmap as the display surface.
Then, load the vector image using the LVectorBase::Load function and paint it on the same DC (Raster image DC) using the LVectorBase::Paint or LVectorBase::Realize functions.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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-2020, Yet Another Forum.NET
This page was generated in 0.099 seconds.