We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot draw filled rounded rectangle

Hi there

I’m trying to draw a rectangle with rounded corners and fill it. The rounded rectangle renders, but the fill does not. What am I missing? Below is my code.

Many thanks, Brett.

    public static void CreateRoundedBoxSample(Stream stream)

        var document = new Document();
        var page = document.Pages.Add();

        var width = 100f;
        var height = 100f;
        var left = 100f;
        var top = 100f;
        var radius = 15f;

        var box = new FloatingBox { Left = left, Top = top };
        var graph = new Aspose.Pdf.Drawing.Graph(width, height);

        var shape = new Aspose.Pdf.Drawing.Rectangle(0, 0, width, height)
            GraphInfo = new GraphInfo
                Color = Color.Black,
                FillColor = Color.Blue
            RoundedCornerRadius = radius





Thanks for contacting support.

We have tested the scenario in our environment and managed to replicate the issue. We have logged it in our issue tracking system under the ticket ID PDFNET-43129. We will further investigate the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

We are also experiencing this issue with the latest version (17.11.0).
Please update with the status of ticket PDFNET-43129.

Thank you.


Thanks for contacting support.

I am afraid that earlier logged issue has been yet resolved, due to large number of pending issues in the queue. As soon as we make some significant progress towards the resolution of the issue, we will let you know. Please be patient and spare us little time.

We are sorry for the inconvenience.