[NTG-context] image with rounded corners

Henning Hraban Ramm texml at fiee.net
Fri Aug 12 16:55:47 CEST 2022


Am 12.08.22 um 13:10 schrieb Wolfgang Schuster via ntg-context:
> Henning Hraban Ramm via ntg-context schrieb am 12.08.2022 um 10:57:
>> Hi, can ConTeXt make rounded image corners?

> \setupexternalfigures[location=default]
> 
> \starttext
> 
> \startMPclip{rounded corner}
> clip currentpicture to (roundedsquare(OverlayWidth,OverlayHeight,EmWidth));
> \stopMPclip
> 
> \clip[nx=1,ny=1,mp=rounded corner]{\externalfigure[mill]}
> 
> \stoptext

Thank you!

Hraban



More information about the ntg-context mailing list