Here we draw two rectangles into our document. The black
rectangle is drawn before the skew operation and the red one is
drawn after it.
[C#]
Doc theDoc = new
Doc(); theDoc.Rect.Width = 200; theDoc.Rect.Height =
250; theDoc.Rect.Position(20, 20); theDoc.Width =
20; theDoc.FrameRect(); theDoc.Transform.Skew(1.5, 1.5, 20,
20); theDoc.Color.String = "255 0 0"; //
red theDoc.FrameRect(); theDoc.Save(Server.MapPath("transformskew.pdf")); theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc =
New Doc() theDoc.Rect.Width = 200 theDoc.Rect.Height =
250 theDoc.Rect.Position(20, 20) theDoc.Width =
20 theDoc.FrameRect() theDoc.Transform.Skew(1.5, 1.5, 20,
20) theDoc.Color.String = "255 0 0" '
red theDoc.FrameRect() theDoc.Save(Server.MapPath("transformskew.pdf")) theDoc.Clear()
transformskew.pdf
|
|
|