IPXC_AnnotHandler::RotateAnnot Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IPXC_AnnotHandler::RotateAnnot Method}}
 
{{#customTitle:IPXC_AnnotHandler::RotateAnnot Method}}
{{#parentPage:PXV:IPXC_AnnotHandler#Methods|RotateAnnot Method|method}}
+
{{#parentPage:PXV:IPXC_AnnotHandler#Methods|RotateAnnot|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Rotates the given [[PXV:IPXC_Annotation|annotation]] by the given angle.
  
 
== Syntax ==
 
== Syntax ==
Line 12: Line 11:
 
                     [in]  float            nAngle,
 
                     [in]  float            nAngle,
 
                     [in]  VARIANT_BOOL      bAbsolute,
 
                     [in]  VARIANT_BOOL      bAbsolute,
                     [in]  PXC_Point*        pRotationPoint);</pre>
+
                     [in]  PXC_Point*        stRotationPoint);</pre>
  
 
== Parameters ==
 
== Parameters ==
 
;pAnnot
 
;pAnnot
:[in]  Pointer to [[PXV:IPXC_Annotation|IPXC_Annotation]].
+
:[in]  Pointer to [[PXV:IPXC_Annotation|IPXC_Annotation]] containing the annotation that will be rotated.
 
;nAngle
 
;nAngle
:[in]  Value of float.
+
:[in]  Value of float containing the rotation angle (for example 45.0f equals 45 degrees).
 
;bAbsolute
 
;bAbsolute
:[in]  Value of VARIANT_BOOL.
+
:[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.
;pRotationPoint
+
;stRotationPoint
:[in]  Pointer to [[PXV:PXC_Point|PXC_Point]].
+
:[in]  Pointer to [[PXV:PXC_Point|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 ==
 
== Return Value ==

Latest revision as of 01:32, 4 December 2018


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.

See Also

IPXC_AnnotHandler