PDF Plugin for Xojo |

# Page.EndPath Method (console safe)

Ends the current path without any drawing or filling. This method is often using when making path to define clipping.

EndPath()

#### Parameters

#### Remarks

Example:

myPage.SaveState() // We save the graphics state since else there is no way to get the clipping back to the full page
// Create circular clipping path in middle of the Dark rectangle
myPage.Ellipse(300,500,150,150)
myPage.Clip()
myPage.EndPath() // We need to do this since Clip does not actually close the path, clipping will not work without this line
// Fill blue rectangle over the dark rectangle, since we are in clipping state then only the clipping circle gets filled
myPage.FillColor = &c0000FF
myPage.Rectangle(100,300,400,400)
myPage.Fill()
// We make two white, rectangles, and we are still in the clipping path
myPage.FillColor = &cFFFFFF
myPage.Rectangle(300,300,200,200)
myPage.Rectangle(100,500,200,200)
myPage.Fill()
myPage.RestoreState() // Restore our state, expanding the Clipping back to the full page

#### See Also

Page Class