LEADTOOLS Support
General
General Questions
Re: Vector and Raster overlay demo for C++ Class Library
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, December 18, 2009 7:53:38 AM(UTC)
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!
#2
Posted
:
Sunday, December 20, 2009 12:16:54 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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
LEADTOOLS Support
General
General Questions
Re: Vector and Raster overlay demo for C++ Class Library
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.