Rectangle Rounded Corner

Rectangle Rounded Corner

Forum member · Jan 12, 2018
Hello, I must draw a rectangle with rounded, these round are specified in mm from the corner. Example: rectange (x = 10, y = 20, width = 30, height = 40) then 5mmn back in x and 8 back in y. which will make ellipse-shaped rounds. What is the simplest method? I use the class "path" with class "CurveSubPath" but impossible to obetenir what I wish. would you have an example? thank you Bonjour, Je doit dessinée un rectangle avec des arrondis, ces arrondit sont specifier en mm à partir du coin. Exemple: rectange (x=10,y=20,width=30,height=40) puis a 5mmn en retrait en x et 8 en retrait en y. ce qui fera des arrondit en forme d'ellipse. Quelle est la methode la plus simple ? j'utilise la class "path" avec des class "CurveSubPath" mais impossible d'obetenir ce que je souhaite. auriez vous un exemple ? merci

Re: Rectangle Rounded Corner

Support · Jan 12, 2018
Hello, You can add the rectangle with rounded corners using DynamicPDF for .NET product. You will need to add the Rectangle object to the PDF page by setting the CornerRadius property. Below is the code sample. Document document = new Document(); Page page = new Page(); document.Pages.Add(page); Rectangle rectObj = new Rectangle(100, 100, 100, 50); rectObj.CornerRadius = 10; page.Elements.Add(rectObj); document.Draw(@"C:\Temp\MyDocument.pdf"); If the above suggestion do not meet your requirements then please send over a sample image or PDF (including the symbol you would like to add to the PDF) to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into it further. Thanks, ceTe Software Support Team.