IPXC_AnnotHandler::RotateAnnot Method
From PDF XChange PDF SDK
Rotates the given annotation by the given angle.
Syntax
HRESULT RotateAnnot([in] IPXC_Annotation* pAnnot, [in] float nAngle, [in] VARIANT_BOOL bAbsolute, [in] PXC_Point* stRotationPoint);
Parameters
- pAnnot
- [in] Pointer to IPXC_Annotation containing the annotation that will be rotated.
- nAngle
- [in] Value of float containing the rotation angle (for example 45.0f equals 45 degrees).
- bAbsolute
- [in] Value of VARIANT_BOOL that defines whether the rotation angle should be added to the current rotation. If true then the angle won't be added.
- stRotationPoint
- [in] Pointer to PXC_Point containing the point of annotation's rotation. For example, to take the center point as a rotation point then the half of the annotation's width should be added to the annotation's left Rect side and the half of the annotation's height should be added to the annotation's bottom Rect side.
Return Value
Returns S_OK if operation was successful or error code in other cases.