Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3666

Cannot clip a path that contains a round rectangle?

$
0
0

I am working on a very graphical UI where a lot of design is done in a background canvas’ paint event.
As I need to draw a picture on a gradient pane that has round rectangle corners, I use this snippet to make it not overlap:

var clip As New GraphicsPath
clip.AddRoundRectangle MenuWidth, 0, g.Width - menuwidth, g.Height, 60/ScaleFactor, 60/ScaleFactor
g.SaveState
g.ClipToPath(clip)

Works nicely on macOS. Does not work at all on Windows, where I run into an

UnsupportedOperationException: Cannot clip path that includes a RoundRectangle.

Docs do say ClipToPath is not available on console or web apps, but this is a desktop app. A Xojo or a documentation bug?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3666

Trending Articles