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 : Wednesday, November 15, 2017 7:30:23 PM(UTC)

tksong  
tksong

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?
 

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 : Thursday, November 16, 2017 4:15:59 PM(UTC)

Walter  
Walter

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.

LDialogImage_DoModalRotate.PNG
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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.072 seconds.