#include "ltwrappr.h"

virtual L_INT LAnnTextPointer::GetTextRotate(puTextRotate)

L_UINT *puTextRotate;

address of variable to be updated

Gets a value that indicates whether the text of an annotation object is rotated.

Parameter Description
puTextRotate Address of the variable to be updated with a value that indicates whether the text is rotated, and if so, by how many degrees. Possible values are:
  Value Meaning
  TEXTROTATE_0 [0] Do not rotate the text.
  TEXTROTATE_90 [90] The text is rotated 90 degrees counter clockwise.
  TEXTROTATE_180 [180] The text is rotated 180 degrees counter clockwise.
  TEXTROTATE_270 [270] The text is rotated 270 degrees counter clockwise.



The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries


For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.


Win32, x64.

See Also


Class Members, LAnnTextPointer::SetTextRotate


Annotation Functions: Object Properties


Implementing Annotations


Automated User Interface for Annotations


Annotation Functions: Creating and Deleting Annotations


Types of Annotations


Annotation Functions: Implementing Custom Annotations


Fixed Annotations


Minimizing Flicker With Double Buffering


// Sample for LAnnTextPointer::SetTextRotate, LAnnTextPointer::GetTextRotate // This example changes the text rotation of a text pointer annotation

L_INT LAnnTextPointer_GetTextRotateExample(LAnnTextPointer  *pLTextPointer)  
	L_INT nRet; 
   L_UINT uTextRotate;  
   L_TCHAR szMsg[100];  
   L_UINT uType;  
   nRet = pLTextPointer->GetTextRotate(&uTextRotate);  
	if(nRet != SUCCESS) 
		return nRet; 
   case TEXTROTATE_0:  
      uTextRotate = TEXTROTATE_90;  
   case TEXTROTATE_90:  
      uTextRotate = TEXTROTATE_180;  
   case TEXTROTATE_180:  
      uTextRotate = TEXTROTATE_270;  
   case TEXTROTATE_270:  
      uTextRotate = TEXTROTATE_0;  
   nRet= pLTextPointer->SetTextRotate(uTextRotate, 0);  
   if (nRet != SUCCESS)  
      uType = pLTextPointer->GetType(); 
      wsprintf(szMsg, TEXT("SetTextRotate Error: %d on object type[%d]\n"), nRet, uType);  
      MessageBox(NULL, szMsg, TEXT("Error"), MB_OK);  
		return nRet; 
	return SUCCESS; 

Help Version 20.0.2019.9.23
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help