IPXC_AnnotHandler::RotateAnnot Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXC_AnnotHandler::RotateAnnot Method}} | {{#customTitle:IPXC_AnnotHandler::RotateAnnot Method}} | ||
− | {{#parentPage:PXV:IPXC_AnnotHandler|method | + | {{#parentPage:PXV:IPXC_AnnotHandler#Methods|RotateAnnot|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Rotates the given [[PXV:IPXC_Annotation|annotation]] by the given angle. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT RotateAnnot([in] IPXC_Annotation* pAnnot, [in] float nAngle, [in] VARIANT_BOOL bAbsolute, [in | + | <pre class="brush:cpp;gutter:false">HRESULT RotateAnnot([in] IPXC_Annotation* pAnnot, |
+ | [in] float nAngle, | ||
+ | [in] VARIANT_BOOL bAbsolute, | ||
+ | [in] PXC_Point* stRotationPoint);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;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 |
− | :[in] Value of float. | + | :[in] Value of float containing the rotation angle (for example 45.0f equals 45 degrees). |
− | ; | + | ;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. |
− | + | ;stRotationPoint | |
− | :[in | + | :[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 == | ||
Line 24: | Line 27: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IPXC_AnnotHandler|IPXC_AnnotHandler]] |
Latest revision as of 00: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.