Jump to content

Entering Macro Parameters as fractions


Recommended Posts

I have used equations to resize my images as described in this thread. I use the Parameter a to adjust the final image size to the desired maximum. However the parameters are constrained to lie between zero and one (inclusive). In this macro, zero gives a size of zero and one gives a size of 4000px. The parameter a is a multiplier for 4000 so that 0.2 gives a target of 800px.

I have found that it is much more convenient to enter a fraction in the parameter box so, instead of entering 0.2, I can enter 800/4000. All the user has to do is to remember the denominator should be 4000. The ability to enter fractions is documented for other parts of the user interface, but I thought it worth mentioning that it works here as well.

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

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.