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 : Monday, October 12, 2009 5:38:38 AM(UTC)
Vijaya Balaji Chellamani

Groups: Registered
Posts: 7


Can we customize the text angle inside a text object without using the draw text.

1. Create a text object  in image, the text angle in the text object will be aligned horizontal reading from left to right

2. Rotate the image to 90 degree clockwise.the lead tool's api function called for rotating 90 degree. 

3. After rotation the text object is also rotated accordingly. The text in the text object will be aligned vertical, reading from top to bottom.

4. Create another text object in the image, the text angle in the text object will be aligned horizontal reading from left to right same as before. The recent creation of the text object is performed on the rotated image.

5. As a result of this steops,  two different orientation of text is obtained.

6. Our expected behaviour is, even after the rotation of the image, the text orientation should be the same. The rect should be maintained since we do not need any rotation of the text object.

7. Is there is any way to get text angle aligned to image position. kindly suggest.

 

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 : Monday, October 12, 2009 5:41:25 AM(UTC)
Vijaya Balaji Chellamani

Groups: Registered
Posts: 7


I have attached the jpg file which would give you a brief explaination

Vijaya Balaji Chellamani attached the following image(s):
settextangle.JPG
 
#3 Posted : Monday, October 12, 2009 12:23:41 PM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


Yes, this is possible with the AnnTextObject.TextRotate property. 

Attached is a screenshot of the automated dialog.  I created the annotation following your steps 1-3 and then modified the property to 90 deg counterclockwise.
GregR attached the following image(s):
screen.JPG
 
#4 Posted : Monday, October 12, 2009 9:05:56 PM(UTC)
Vijaya Balaji Chellamani

Groups: Registered
Posts: 7


Hi ,

    Thanks for the immediate reply, I am using Lead Tools version 13 and we are using lead tools as a ocx in our application. Can the same property of 90 degree ( counter clockwise) be acheived in OCX apis ( lead tools version 13) . Kindly suggest.

 

Thanks,

Vijaya Balaji Chellamani

 
#5 Posted : Tuesday, October 13, 2009 10:23:23 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


This feature was not added until version 14.5.  Also, it was not added into the ActiveX interface.  However, since the ActiveX uses the CDLL under the hood, you can call any CDLL function to modify the annotation object.  For this case you would need to use the L_AnnSetTextRotate & L_AnnGetTextRotate functions.
 
#6 Posted : Wednesday, October 14, 2009 6:09:22 AM(UTC)
Vijaya Balaji Chellamani

Groups: Registered
Posts: 7


Hi,

        Thank you for your reply . I could not find those CDLL function  ( L_AnnSetTextRotate & L_AnnGetTextRotate functions) in any of my lead tools related functions . Kindly clarify us whether the lead tools version 13 has those fuctional features.

 

Thanks,

 

Vijaya Balaji Chellamani

 
#7 Posted : Thursday, October 15, 2009 7:12:12 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


This feature was not added until version 14.5 so it's not available in 13.
 
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.091 seconds.