PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis method scales PDF document page coordinates.
|
| HRESULT ScaleCoords ( FLOAT scaleX, FLOAT scaleY ) |
Parameters
scaleX
Horizontal scale factor
scaleY
Vertical scale factor
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method scales the coordinate system by the scaling factors supplied for the x and y dimensions and does not modify any graphics already displayed.
Example
Scaling Coordinates
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.DrawRectangle(10, 20, 300, 200, 0);
PDF.Stroke;
PDF.ScaleCoords(0.5, 0.5);
PDF.DrawRectangle(10, 20, 300, 200, 0);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->DrawRectangle(10, 20, 300, 200, 0);
PDF->Stroke();
PDF->ScaleCoords(0.5f, 0.5f);
PDF->DrawRectangle(10, 20, 300, 200, 0);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.DrawRectangle(10, 20, 300, 200, 0);
PDF.Stroke();
PDF.ScaleCoords(0.5f, 0.5f);
PDF.DrawRectangle(10, 20, 300, 200, 0);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.DrawRectangle 10, 20, 300, 200, 0 PDF.Stroke PDF.ScaleCoords 0.5, 0.5 PDF.DrawRectangle 10, 20, 300, 200, 0 PDF.Stroke PDF.SaveToFile "test.pdf", true
See Also
Reference


