![]() ![]() For a star this would be the number of corners, the spoke ratio etc. In case of a rounded rectangle this will be the width and height of the rectangle, as well as the x and y corner radii. Inkscape will now be aware of the type of object you're editing and offer you specific fields to change the object properties. To enter "Edit" mode, double click the object. Then you can drag the handle of the specific object (polygon, star, rectangle, circle etc.) or change the object properties (like width and height) in the appropriate fields. To scale the object without affecting its stroke, you need to enter "Edit" mode. Then select the object and change its width to 210 pixels. It simply applies an affine transformation to the object.įor example, create a 100x100 pixel rectangle with a 10 pixel border and a 20 pixel corner radius. ![]() In this case, Inkscape doesn't care whether it's an object with a stroke, an image, a group of objects, a complex polygon etc. Generally, you will distort/scale an object if you drag its bounding box or edit its width and height in the object properties field. The effect you're observing is perfectly normal, since you're applying a scaling transformation to the entire object, which will distort/scale the object, including its stroke. If the stroke seemed uniform in your PNG, maybe the export resolution wasn't sufficient? (Just an assumption)įirst off: I am assuming that by "rounded polygon" you mean a "rounded rectangle". You can find the exported PDF with the four shapes shown above here. The stroke of the object does definitely not change when you export it. If you stretch the object width, and then convert the object to a path, the (uneven) stroke is converted to a path and you won't be able to edit its width anymore. This is because the affine object transformation is applied at the end (after the shape has been drawn with stroke). That means if you scale the object by different amounts in the x and y dimensions, the stroke will be distorted. The button "Scale stroke width by the same proportion" will only work for uniform scaling. ![]() Now you have an elongated shape for which you can still edit the (uniform) stroke width. If you need a hint where to place the vertices, you could move a distorted duplicate with uneven stroke and the exact desired width above and use guides to place your vertices, like so: Move the individual vertices along the x-axis until you have elongated the object to your liking. I believe this is the case you asked for in your example ("obtain an object elongated along the x-axis). Distort the shape ( do not keep its aspect ratio) without changing the stroke width After you drag the handle to change the size of the shape, your object will still have the same stroke width.Ģ.For a polygon the handle will look like this: Simply double click the object (as explained below), then use the object handles.Scale the shape but keep its aspect ratio without changing the stroke width Basically, there are two cases you might be interested in:ġ. To better highlight that we're dealing with a rounded polygon, I'm using a polygon with only 3 corners and roundness 0.2 in the following.Īny ideas on how to convert to paths without the line thickness changing? I initially mistook your image for a rounded rectangle, sorry about that. Exporting the shape to a PDF or a PNG should not affect the stroke at all (see below). The answer below is still valid - if you transform the object as a whole, you distort the stroke. UPDATE: With the additional details you provided in the comments I believe I better understood your question, so let me provide an update.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |