Drawing a rectangle with 2 radiused corners

Creating a macro - Writing a Script - Using the API

Drawing a rectangle with 2 radiused corners

Postby bartjeman » Wed Jul 03, 2019 10:22 pm

I've used "com.sun.star.drawing.RectangleShape" and "com.sun.star.drawing.PolyPolygonShape" to good effect.
But I have a new project that requires a rectangle with 2 sharp corners, and 2 radiused corners.

When I look at the API I can see
RecatangleShape -> LineProperties -> PolyPolygonBezierCoords LineStart and PolyPolygonBezierCoords LineEnd
But I am no closer to a solution

Can someone get me started?
OpenOffice 4.0.1 on Windows 7
User avatar
bartjeman
 
Posts: 144
Joined: Sun Jan 03, 2010 6:23 am
Location: Toronto

Re: Drawing a rectangle with 2 radiused corners

Postby Bidouille » Thu Jul 04, 2019 7:57 pm

Draw the desired shape.
Inspect object with MRI or XRay.
User avatar
Bidouille
Volunteer
 
Posts: 285
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: Drawing a rectangle with 2 radiused corners

Postby bartjeman » Thu Jul 04, 2019 11:00 pm

I will give that a try, sure to be back here with questions :-)
OpenOffice 4.0.1 on Windows 7
User avatar
bartjeman
 
Posts: 144
Joined: Sun Jan 03, 2010 6:23 am
Location: Toronto


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 3 guests