PDFPAGE_RectRotated
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method creates a rotated rectangle path.

Syntax

HRESULT PDFPAGE_RectRotated (
DOUBLE left,
DOUBLE top,
DOUBLE width,
DOUBLE height,
DOUBLE degreeRotateAngle
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

width
Width of the rectangle

height
Height of the rectangle

degreeRotateAngle
Angle of the rotation

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a rectangle with left-top corner at (left, top), size as (width, height), rotated counterclockwise by angle degreeRotateAngle, measured in degrees.

Equivalent in new interface: IPDFDocument4::DrawRectangle.

Example

Rotated Rectangle Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_RectRotated(200, 100, 410, 310, -15);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_RectRotated(200, 100, 410, 310, -15);
PDF->PDFPAGE_Stroke();
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_RectRotated(200, 100, 410, 310, -15);
PDF.PDFPAGE_Stroke();
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_RectRotated 200, 100, 410, 310, -15
PDF.PDFPAGE_Stroke
PDF.EndDoc

See Also

Reference