PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method rotates the graphics coordinate system counterclockwise to the angle specified.
|
| HRESULT RotateCoords ( FLOAT angle ) |
Parameters
angle
The angle (in degrees) to rotate the graphics
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method applies the graphics rotation for all future drawing operations and does not modify any graphics already displayed.
Example
Rotating Coordinates
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.DrawRectangle(100, 100, 300, 200, 0);
PDF.Stroke;
PDF.RotateCoords(-10);
PDF.DrawRectangle(100, 100, 300, 200, 0);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->DrawRectangle(100, 100, 300, 200, 0);
PDF->Stroke();
PDF->RotateCoords(-10);
PDF->DrawRectangle(100, 100, 300, 200, 0);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.DrawRectangle(100, 100, 300, 200, 0);
PDF.Stroke();
PDF.RotateCoords(-10);
PDF.DrawRectangle(100, 100, 300, 200, 0);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.DrawRectangle 100, 100, 300, 200, 0 PDF.Stroke PDF.RotateCoords -10 PDF.DrawRectangle 100, 100, 300, 200, 0 PDF.Stroke PDF.SaveToFile "test.pdf", true
See Also
Reference


