LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LBitmapBase > LBitmapBase Member Functions > LBitmapBase::GetRotateParams |
#include "ltwrappr.h"
L_VOID LBitmapBase::GetRotateParams(nAngle, bResize, pOldCenter)
L_INT32 * nAngle; |
/* hundredths of degreesto rotate (+/-) */ |
L_BOOL * bResize; |
/* resize flag */ |
pANNPOINT pOldCenter; |
/* rotation center point */ |
Gets the parameters that were used for the last LBitmapBase::Rotate or LBitmapBase::RotateViewPerspective call.
Parameter |
Description |
nAngle |
Hundredths of degrees to rotate (+/-). This can be a number from 0 to 36,000. A positive value will rotate the image in a clockwise rotation, while a negative value will rotate the image in a counter-clockwise rotation. |
bResize |
TRUE if the image was also resized, FALSE if the dimensions were not altered. |
pOldCenter |
The center point that was used for the rotation. Normally, this is the images center point. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Bitmaps might be rotated by user interaction within the LAnnotationWindow class. This function can be used to get the parameters that were specified when that rotation occurred.
Required DLLs and Libraries
LTKRN LTWVC 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
Functions: |
LBitmapBase::Rotate, LBitmapBase::RotateViewPerspective, Class Members |
Topics: |
|
|
Example