HRESULT AlternateClip () |
{ PDF object is supposed to be created } { create clip region as circle } PDF.DrawCircle(70, 70, 50); PDF.DrawCircle(90, 90, 40); PDF.AlternateClip; { now region is clipped, draw 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->AlternateClip(); // now region is clipped, draw 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.AlternateClip(); // now region is clipped, draw 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.AlternateClip ' now region is clipped, draw 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