#1
Posted
:
Wednesday, November 15, 2017 7:30:23 PM(UTC)
Groups: Registered
Posts: 10
Thanks: 1 times
Hi, I am working on a project using Leadtool in the MFC environment.
I want to rotate the image freely using the mouse like the PANIMAGE tool, but
I was able to rotate the image only at a limited angle.
I found an article to use the 'RotateCommand' in my forum search results,
Can I use the RotateCommand function in an MFC environment?
If yes, how can I use it?
#2
Posted
:
Thursday, November 16, 2017 4:15:59 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Hello,
The
RotateCommand is a .NET method. For MFC, I am assuming you are using C++ in which case you will want to look at
LBitmapBase::Rotate() or
LDialogImage::DoModalRotate(). The Rotate() method will allow you to manually do the rotation. You've indicated you wanted to accomplish this using the mouse though. For that, I'd suggest checking out the image common dialog. You can see how this works in the LEADTOOLS C++ Main Demo. Under the Image menu, mouse over Rotate and then select the Any Angle menu item.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
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.