public PushClipPath ( string clipPath ) : |
||
clipPath | string | The ID of the clip path. |
리턴 |
public Drawables PushClipPath(string clipPath)
{
_Drawables.Add(new DrawablePushClipPath(clipPath));
return this;
}
private void SetClipMask(IMagickImage image, int x0, int y0, int x1, int y1) { var drawables = new ImageMagick.Drawables(); var paths = drawables.Paths() .MoveToAbs(x0, y0) .LineToAbs(x1, y0) .LineToAbs(x1, y1) .LineToAbs(x0, y1) .LineToAbs(x0, y0); var pathId = nameof(SetClipMask); drawables .PushClipPath(pathId) .Path(paths) .PopClipPath() .ClipPath(pathId) .Draw(image); }