Jump to content
You must now use your email address to sign in [click for more info] ×

Transform panel: option to show object size including stroke


Recommended Posts

An option for the transform panel to show an objects size including its stroke.

--

I've just been creating some graphics in multiple widths; 60px, 120px, 200px wide.  The outermost element was a rectangle with a stroke.  in order to scale the graphics efficiently via the transform panel I found my self having to use mental arithmetic, and multiple attempts, to account for the stroke width as this is not included in the dimensions shown in the Transform panel.

 

This would be a useful addition as an option for those of us needing precise scaling of stroked objects.

 

Thanks 

Link to comment
Share on other sites

  • Staff

That's not as straight forward as it sounds.  The stroke is subject to mitre limits, so we'd have to do an expensive calculation of the physical extents of the stroke geometry. Fine for a simple rectangle, but for complex paths that could be involved.  We do approximations of this for invalidating areas of the page, but it is mostly pessimistically oversized and not at all precise.

 

One option is to chose to have your strokes inside aligned.  That way the physical size is unaffected by the stroke width, so the size displayed in the transform panel will be exact.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

Thanks for quick the reply.

 

My image was actually a little more complex, so the "inside aligned" option wouldn't have worked in this case.  

 

Whilst looking around for a solution I did notice that I could "Expand Stroke" to detach the stroke and get closer to what I was after.  But that limited my options for adjustments thereafter.

 

Affinity Designer's performance is very impressive, so I can understand why you wouldn't want to compromise a basic calculation like this.

 

 

 

 

 

 

 

 

post-11125-0-37064800-1431683327_thumb.png

Link to comment
Share on other sites

** Actually, tried with inside stroke and, YES it did work with my final image..  

 

Originally I had been working with an open path, where I couldn't set an inside stroke, but ultimately closed it and could have used inside stroke and made my life a bit easier!

 

Useful tip thanks. 

 

(Just tried starting over using an inside stroke from the start, and I am struggling to get nice rounded corners easily.  So I think that ultimately the center stroke is easier in this case to get the desired look, but difficult to scale precisely there after.   But a useful tip that is good to know.

 

Thanks for the assistance.

post-11125-0-00505800-1431685040_thumb.png

Link to comment
Share on other sites

  • Staff

We can look at the option you suggested.  I can't promise anything yet though.  The difficulty comes when specifying a new size in the transform tab.  We would have to increase the size with stroke awareness.  More complicated than it sounds as a stroke can be set to not scale with the object, so the size correction would have to be added to the original geometry but with deeper analysis of how the existing geometry is expanded by the stroke direction.

 

Anyway - 

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

First, let me ditto roryobryan's kudos: you guys really are doing a terrific job.  If you weren't, we wouldn't be giving you such a hard time.  :)

 

That having been said, maybe I can help out by proposing a method.

 

Since AD already includes the ability to expand a stroke, that analysis software already will have been written, if AD simply automatically expanded each stroke into RAM and discarded the old RAM expansion any time the geometry of a polygon changes.  Running the relevant code after scaling or other operations that already account for or have nothing to do with the do-or-don't-scale-stroke-with-shape setting, the notion of deeper analysis ought to be moot.

 

As for layer effects — which nobody yet has mentioned yet, but I can just hear the hecklers already — they come with their own mathematical (pardon the pun) problems and simply could be ignored entirely … along with inside strokes, for obvious reasons.

 

I know adding a feature like this really isn't something to do in just a few minutes, but it seems to me that the hard part will be debugging, and making sure the in-RAM copies don't get saved to disk or spat out a printer as spurious geometry.

 

Anyway, that's just my 2¢.

 

—Russ

—Russ Jonson

Still and video design, logos, branding, and more 

RussDoes.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.