Creating Rounded Rectangle and Ring on the Screen #1964
-
I am trying to add rounded rectangle on the screen with the following code. When I set the buffer value to the half of the height and with which is 400, rounded rectangle becomes a Ring. This is good, But the Ring is not smooth enough. When, looked carefully, it looks like a polygon with lots of vertices. As I know, rings are drawn as polygon vertices. My question is; how can I make the Ring or Rounded Rectangle's edges smoother? Is this the best way to add a geometry on the screen? float buffer = Geometry::hasBufferOperation() ? 200.0f : 0.0f;
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The buffering is a GEOS operation so you may wish to consult the GEOS code for an answer. Have you tried the |
Beta Was this translation helpful? Give feedback.
The buffering is a GEOS operation so you may wish to consult the GEOS code for an answer. Have you tried the
BufferParameters._cornerSegs
property?