Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Graphics
Collapse All

This method skews the coordinates to the angles specified.

Skew

Syntax

HRESULT SkewCoords (
FLOAT xAngle,
FLOAT yAngle
)
Parameters
xAngle
Skew angle of the X axis

yAngle
Skew angle of the Y axis

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

Example

Skewing Coordinates

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SkewCoords(5, -15);

PDF.DrawRectangle(150, 150, 150, 50, 0);
PDF.Stroke;

f := PDF.AddFont('Arial', false, false, false, false, fcDefault);
PDF.UseFont(f, 18);
PDF.ShowTextAt(150, 210, 'Text.');

PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SkewCoords(5, -15);

PDF->DrawRectangle(150, 150, 150, 50, 0);
PDF->Stroke();

long f = PDF->AddFont("Arial", false, false, false, false, fcDefault);
PDF->UseFont(f, 18);
PDF->ShowTextAt(150, 210, "Text.");

PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SkewCoords(5, -15);

PDF.DrawRectangle(150, 150, 150, 50, 0);
PDF.Stroke();

long f = PDF.AddFont("Arial", false, false, false, false, FontCharset.fcDefault);
PDF.UseFont(f, 18);
PDF.ShowTextAt(150, 210, "Text.");

PDF.SaveToFile("test.pdf", true);
Visual Basic Script
[copy to clipboard]
' PDF object is supposed to be created
PDF.SkewCoords 5, -15

PDF.DrawRectangle 150, 150, 150, 50, 0
PDF.Stroke

f = PDF.AddFont("Arial", false, false, false, false, 0)
PDF.UseFont f, 18
PDF.ShowTextAt 150, 210, "Text."

PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots