Cropping a Canvas Before Returning From OnDraw

Nathan Sokalski
4,056
Reputation points
I have a custom View in which I override the OnDraw method. Before returning the Canvas, I want to crop it, but I cannot find a way to do this. SetViewport does not work, and none of the .Clip* methods seem to do anything. How can I control what part of the Canvas is actually used?