LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: RGNXFORM, Dialog and drawing rectangle region
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, January 10, 2011 6:49:36 AM(UTC)
Groups: Registered
Posts: 32
LEAD 17, VS2010
Using the C++ library to create a LBitmapWindow with in a dialog. I have buttons that Zoom, Pan, Select a region and reset the window. I’m using the region select tool to create a region but with no floater. After the region is selected I’m trying to use FrameRgn() to draw the region but cannot seem to get the RGNXFORM correct to draw the region. I know the timer is going off and I do have a region.
I've attach the code for the project the only thing is that the image kemp300bw.bmp MUST be in the same folder as the executable.
The code in MsgProcCallBack() is not used except the LBUTTONUP which calls CancelRgn() to kill the floater b ut the region should remain.
Thanks
File Attachment(s):
I2V.zip (1,229kb) downloaded 26 time(s).
#2
Posted
:
Tuesday, January 11, 2011 6:10:04 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I'm attaching a modified version of the CImageToVectorDlg::OnTimer function. Please check it and let me know if you face any problems.
#3
Posted
:
Thursday, January 13, 2011 10:53:58 AM(UTC)
Groups: Registered
Posts: 32
That worked fine.
I just need to refresh if the user creates another region because the "last" region frame is still on the display. If I force a refresh it disappears.
Thanks again
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: RGNXFORM, Dialog and drawing rectangle region
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.