How to create an image of a grid of horizontal lines

Corel Paint Shop Pro

Moderator: Kathy_9

User avatar
jparnold
Advisor
Posts: 1080
Joined: Sat Dec 17, 2005 10:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte Z390 UD
processor: Intel Pentium i7 9700 3dot6Ghz
ram: 16GB DDR3
Video Card: Gigabyte RTX2060 OC 6GB
sound_card: Onboard Realtec ALC887
Hard_Drive_Capacity: 2048Gb mix
Monitor/Display Make & Model: Samsung S27C450B
Corel programs: Videostudio X10, Paint Shop Pro 2018
Location: Blue Mountains, NSW, Australia

How to create an image of a grid of horizontal lines

Post by jparnold »

I am trying to create an image which contains ONLY horizontal lines which have a thickness of 5.0 and are equidistant apart in an image which is 4096 X 4096 pixels and wondering if there is a faster method than manually creating each line. There is to be 33 horizontals lines equidistant apart. Sorry 33 doesn't work should be 32
Something like this (the top line should be at the very top of the image) -
lines.jpg
You do not have the required permissions to view the files attached to this post.
John a
VS X10 Ultimate, Paint Shop Pro 2018 Ultimate, Audacity, Panasonic HC-X920M, Nikon Coolpix S8100
LeviFiction
Advisor
Posts: 6774
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: How to create an image of a grid of horizontal lines

Post by LeviFiction »

Scripts would be the absolute fastest. All it takes is a loop and a little math.

But if you aren't already familiar with scripting the next fastest is what you're doing. First create four lines. Then select all four of them at once and duplicate them in one go, positioning the new group into place. Do the same with the 8 lines you have and you now have 16 lines, do it once more for a total of 32 lines.
Jean-Luc
Advisor
Posts: 2138
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)

Re: How to create an image of a grid of horizontal lines

Post by Jean-Luc »

Try this script:
Grid_DrawnOnVectorLayer.zip
Vertical and horizontal lines are drawn.
When done, it is easy to delete the vertical lines in the Layers Palette.
:-)
You do not have the required permissions to view the files attached to this post.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
User avatar
jparnold
Advisor
Posts: 1080
Joined: Sat Dec 17, 2005 10:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte Z390 UD
processor: Intel Pentium i7 9700 3dot6Ghz
ram: 16GB DDR3
Video Card: Gigabyte RTX2060 OC 6GB
sound_card: Onboard Realtec ALC887
Hard_Drive_Capacity: 2048Gb mix
Monitor/Display Make & Model: Samsung S27C450B
Corel programs: Videostudio X10, Paint Shop Pro 2018
Location: Blue Mountains, NSW, Australia

Re: How to create an image of a grid of horizontal lines

Post by jparnold »

"Try this script: "

PERFECT. Thanks a lot. I didn't have to delete vertical lines as the prompt allows entry of 0 (zero) for vertical lines.

The number of horizontal lines prompt had me tricked at first until I worked out (from trial and error) that the top and bottom lines are not drawn or included.

Here is part of an image showing before and after adding the horizontals lines (I just wanted the image to show wider gaps between the planks).

SCRIPT.jpg
You do not have the required permissions to view the files attached to this post.
John a
VS X10 Ultimate, Paint Shop Pro 2018 Ultimate, Audacity, Panasonic HC-X920M, Nikon Coolpix S8100
Jean-Luc
Advisor
Posts: 2138
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)

Re: How to create an image of a grid of horizontal lines

Post by Jean-Luc »

thumb up.jpg
You do not have the required permissions to view the files attached to this post.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023