HRESULT Clip () |
{ PDF object is supposed to be created } { create clip region as circle } PDF.DrawCircle(70, 70, 50); PDF.DrawCircle(90, 90, 40); PDF.Clip; { now region is clipped, draw some text } for i := 1 to 25 do PDF.ShowTextAt(10, 10*i, 'text text text text text text text text text'); PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created // create clip region as circle PDF->DrawCircle(70, 70, 50); PDF->DrawCircle(90, 90, 40); PDF->Clip(); // now region is clipped, draw some text for (int i = 1; i < 25; i++) PDF->ShowTextAt(10, 10*i, "text text text text text text text text text"); PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created // create clip region as circle PDF.DrawCircle(70, 70, 50); PDF.DrawCircle(90, 90, 40); PDF.Clip(); // now region is clipped, draw some text for (int i = 1; i < 25; i++) PDF.ShowTextAt(10, 10*i, "text text text text text text text text text"); PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created ' create clip region as circle PDF.DrawCircle 70, 70, 50 PDF.DrawCircle 90, 90, 40 PDF.Clip ' now region is clipped, draw some text For i = 1 To 25 PDF.ShowTextAt 10, 10*i, "text text text text text text text text text" Next PDF.SaveToFile "test.pdf", true