Why these rounded corners?

Corel Paint Shop Pro

Moderator: Kathy_9

terrypin
Posts: 492
Joined: Tue Jun 29, 2010 9:51 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z170 Pro 4
processor: Intel Core i7 6700K 4.0GHz
ram: 32 GB
Video Card: None - uses built-in graphics
sound_card: HD onboard sound card
Hard_Drive_Capacity: 4.256 TB
Monitor/Display Make & Model: iLyama Prolite E2403WS 24" 1920x1200
Corel programs: Paint Shop Pro 8; Paint Shop Pro 2018
Location: East Grinstead UK

Why these rounded corners?

Post by terrypin »

Hopefully self-explanatory:


Image



Image

Here are the images alternatively as links:
https://www.dropbox.com/s/iqq7e700vkugg ... .jpg?raw=1
https://www.dropbox.com/s/zvvi5bw2lyulk ... .jpg?raw=1
--
Terry, East Grinstead, UK
Using PSP 8 & PSP 2018 under Win 10
terrypin
Posts: 492
Joined: Tue Jun 29, 2010 9:51 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z170 Pro 4
processor: Intel Core i7 6700K 4.0GHz
ram: 32 GB
Video Card: None - uses built-in graphics
sound_card: HD onboard sound card
Hard_Drive_Capacity: 4.256 TB
Monitor/Display Make & Model: iLyama Prolite E2403WS 24" 1920x1200
Corel programs: Paint Shop Pro 8; Paint Shop Pro 2018
Location: East Grinstead UK

Re: Why these rounded corners?

Post by terrypin »

However, I see that if I copy and save it as a new image, that has the sharp corners I want. So it's now a mere curiosity, not a practical issue.
--
Terry, East Grinstead, UK
Using PSP 8 & PSP 2018 under Win 10
jjangfree
Posts: 29
Joined: Thu Sep 22, 2016 1:01 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS P8P67 B3
processor: I5-2500K 4.0 over
ram: 16GB
Video Card: GT240
Hard_Drive_Capacity: 4TB
Corel programs: XI, X9, 2020

Re: Why these rounded corners?

Post by jjangfree »

Sorry for poor english in advance.
It should be done like that by default for expanded selection of rounded object (eg. expanded seleciton from eclipse). So does photoshop.
Otherwise, expanded rounded seleciton from ecplipse could be jagged. It's not a vector. Expand from every position? should be 10px distance.
Just press Current Selection area button on Selection tool option(marqueed square icon).
terrypin
Posts: 492
Joined: Tue Jun 29, 2010 9:51 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z170 Pro 4
processor: Intel Core i7 6700K 4.0GHz
ram: 32 GB
Video Card: None - uses built-in graphics
sound_card: HD onboard sound card
Hard_Drive_Capacity: 4.256 TB
Monitor/Display Make & Model: iLyama Prolite E2403WS 24" 1920x1200
Corel programs: Paint Shop Pro 8; Paint Shop Pro 2018
Location: East Grinstead UK

Re: Why these rounded corners?

Post by terrypin »

Thanks, I get some of that.

I see now that for a sudden change of direction (a discontinuity) like my rectangle's corners, the meaning of 'expand by 10 px' is hard to define. A circular quadrant with a radius of 10 px seems reasonable. But why is that then lost when pasting the selection to a new image? I'm glad that it is - but it's puzzling! After all, if you select a rounded rectangle, that keeps its shape when you paste it elsewhere.

I've never used any of those four icons (including 'Custom selection') so that's something I'm going to have to read up on. Unless anyone can give me some simple examples of when I would want to use them. In particular I don't really see what enabling 'Current selection' does in the case under discussion.
--
Terry, East Grinstead, UK
Using PSP 8 & PSP 2018 under Win 10
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Why these rounded corners?

Post by JoeB »

That is a bug in PSP that has existed since the JASC days and never been addressed despite my bringing it up for years. When you expand a rectangular selection the corners become rounded and the only solution is to then use the Create Selection From>Current Selection icon after you have expanded the selection.

I have written a short script that can be bound to an icon and placed either on a toolbar or in the Selections menu (as I have done) that you can use instead of going to Selections>Modifiy>Expand and then having to also click Create from Current Selection. I just go to Selections>Selection-Expand with Square Corners (which is my boundscript) and it opens the expand dialogue, lets you select the number of pixels to expand and after you click OK the script automatically creates the expanded selection with square corners. It saves some annoying steps for me. :-) If you want it you can get it here:

http://forum.corel.com/EN/viewtopic.php ... 00#p318600

By the way, the bug also exists in the Select Selections Border tool. If you create a selection and then try to create an Outside border you'll find that the outer corners of that border are also rounded. The workaround is also using a script. :-)

My Selections menu looks like this:
Attachments
Modified Selections menu
Modified Selections menu
Regards,

JoeB
Using PSP 2019 64bit
jjangfree
Posts: 29
Joined: Thu Sep 22, 2016 1:01 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS P8P67 B3
processor: I5-2500K 4.0 over
ram: 16GB
Video Card: GT240
Hard_Drive_Capacity: 4TB
Corel programs: XI, X9, 2020

Re: Why these rounded corners?

Post by jjangfree »

terrypin wrote:But why is that then lost when pasting the selection to a new image?
I dont get it what you mean exactly. As I post above. My english is poor. This is My apology.
Pasting expanded rounded rentangle to new image does not lost rounded corners. It has alpha area at outside of four corners.
and saving files in png or gif format would keep this transparent area. But, Merge all layers will lost alpha area and Saving other format like jpg will lost it too.
terrypin
Posts: 492
Joined: Tue Jun 29, 2010 9:51 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Asus Z170 Pro 4
processor: Intel Core i7 6700K 4.0GHz
ram: 32 GB
Video Card: None - uses built-in graphics
sound_card: HD onboard sound card
Hard_Drive_Capacity: 4.256 TB
Monitor/Display Make & Model: iLyama Prolite E2403WS 24" 1920x1200
Corel programs: Paint Shop Pro 8; Paint Shop Pro 2018
Location: East Grinstead UK

Re: Why these rounded corners?

Post by terrypin »

Thanks Joe, that will be handy, duly installed. I'm guessing it's not comfortable in PSP8, as I get the error message
"The script coud not be loaded" and in the Scrip Preview pane this:

Code: Select all

Traceback (most recent call last):
  File "C:\Users\terry\My PSP8 Files\Scripts-Trusted\Selection_Expand with Square Corners.PspScript", line 1, in ?
    from PSPApp import *
ImportError: No module named PSPApp
EDIT
I changed first line 'PSPApp' to 'JascApp' and ran it again. This time it gave the warning:
"This script is from a newer version of Paint Shop Pro or the version could not be determined.
You can continue to execute this script, but errors may occur or the script may produce unexpected results."


However - on closing that it worked apparently perfectly. Thanks a lot!
--
Terry, East Grinstead, UK
Using PSP 8 & PSP 2018 under Win 10
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Why these rounded corners?

Post by JoeB »

terrypin wrote:Thanks Joe, that will be handy, duly installed. I'm guessing it's not comfortable in PSP8, as I get the error message
"The script coud not be loaded" and in the Scrip Preview pane this:

Code: Select all

Traceback (most recent call last):
  File "C:\Users\terry\My PSP8 Files\Scripts-Trusted\Selection_Expand with Square Corners.PspScript", line 1, in ?
    from PSPApp import *
ImportError: No module named PSPApp
EDIT
I changed first line 'PSPApp' to 'JascApp' and ran it again. This time it gave the warning:
"This script is from a newer version of Paint Shop Pro or the version could not be determined.
You can continue to execute this script, but errors may occur or the script may produce unexpected results."


However - on closing that it worked apparently perfectly. Thanks a lot!
Glad you like it and it now works for you. I keep forgetting that you're using the old Jasc PSP8, not newer Corel versions. If you keep getting that warning when you run the script then just try changing the Host to Paint Shop Pro 8 and the Host Version number in the script to 8.00
Regards,

JoeB
Using PSP 2019 64bit
Muriel
Posts: 137
Joined: Thu Jan 05, 2012 6:25 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Why these rounded corners?

Post by Muriel »

Good Evening..

Using PSP X9, Windows 10.1

First, thank-you for sharing this script with us.

I am confused about where to actually install it. I put it in the Corel 12 folder in the Windows(C)/Program Data/Corel/Corel Paint Shop Pro X9/Corel 12 folder that contains the PspSelection Files. It does not appear in the program.

So, I am obviously putting it in the wrong place, but have no idea where it should go.

Many thanks..

Muriel!
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Why these rounded corners?

Post by LeviFiction »

Scripts (files ending in *.pspscript) go into your scripts-restricted or scripts-trusted folders. 99% of all scripts should be placed in scripts-restricted unless otherwise indicated. These folders can traditionally be found

C:\\Users\UserName\Documents\Corel PaintShop Pro\X9\Scripts-Restricted
https://levifiction.wordpress.com/
Muriel
Posts: 137
Joined: Thu Jan 05, 2012 6:25 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Why these rounded corners?

Post by Muriel »

Good Evening, LeviFiction!

Thank-you for your prompt reply. Hey, I am getting closer! I installed it in the Scripts Restricted folder that I had created and to which it is linked, and it turned up quite rightly and properly in the Drop Down Scripts menu!

Challenging as it is, I would love to convince it to live in the Selections Drop Down Menu, as per the illustration.

Many thanks again.. Gosh, I love this forum!

Muriel!
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Why these rounded corners?

Post by JoeB »

Muriel wrote: Challenging as it is, I would love to convince it to live in the Selections Drop Down Menu, as per the illustration.

Muriel!
I'm afraid all scripts that we create and use to perform actions, regardless of the task they perform, must reside in the Scripts follders for PSP to be able to recognize them as actual created scripts. However, you can then rename the script to a name that works best for you to identify what it is to be used for. You can also, using the Resource Manager, create different categories for scripts so that you can select the desired category from the Scripts dropdown and have different scripts that do different things assigned to their particular categories.
Regards,

JoeB
Using PSP 2019 64bit
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: Why these rounded corners?

Post by LeviFiction »

Muriel, JoeB added the script to his menu using what are known as Bound Scripts and the Customize command.

Here is a silent video demonstrating the process: https://drive.google.com/file/d/1Hx4_SY ... DTM8n/view

And here are the steps:
1) Got to View -> Customize
2) Click on Scripts tab
3) Select script from list
4) Select an Icon you want to use to represent your script
5) Hit the "Bind" button
6) Click on the menu you want to edit (with the Customize dialog still open)
7) Drag the bound script from the list of scripts into the menu
8) You can right-click on a menu item and select "Button Appearance" to change its name, and whether or not the icon will appear
9) Accept the changes by hitting "OK" on the customize dialog.

A fun additional bit of info. In the Customize dialog under "Keyboard" you can assign shortcut keys to your bound script so that you can call it quickly.
https://levifiction.wordpress.com/
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Why these rounded corners?

Post by JoeB »

Thanks LeviFiction. I missed the point she was trying to make, but glad you caught it!
Regards,

JoeB
Using PSP 2019 64bit
Muriel
Posts: 137
Joined: Thu Jan 05, 2012 6:25 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Why these rounded corners?

Post by Muriel »

Good Evening..

Thank-you so much LeviFiction and Joe B!

OH MY GOODNESS... IT WORKED!! :P This is SO COOL.. The things I learn from this forum, I tell ya!

You guys rock..

Muriel! :D
Post Reply