Converting a raster layer into a mask layer

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
User avatar
paaddor
Posts: 2
Joined: Tue Nov 17, 2020 6:13 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel i5
ram: 32 GB
Video Card: RTX 2060M
Hard_Drive_Capacity: 1 TB
Corel programs: Paintshop Ultimate 2021

Converting a raster layer into a mask layer

Post by paaddor »

Unfortunately I didn't find in the manual how to convert a raster layer into a mask layer. The manual describes only how to convert the background layer into a common layer.
LeviFiction
Advisor
Posts: 5766
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, 9, X, XI, X2, X8,X9, 2018, 2019
Location: USA

Re: Converting a raster layer into a mask layer

Post by LeviFiction »

There is no official way to convert a raster layer into a mask layer. There are several methods that can be used but no direct conversion. All of these methods should work to copy Art Media layer data to a mask as well.

I think the easiest option is to Copy and Paste raster data into a mask layer.

1) Select Raster Layer
2) CTRL + A (Select All)
3) Create a New Mask Layer
4) Select Mask Layer
5) CTRL + SHIFT + L (Paste Into Selection)

The important thing is to have some image data in the clipboard, and have the entire image selected when you use Paste Into Selection. Which also means this is easily scriptable.

Another option is to use the "New Mask -> From Image" command. This will use the flattened version of any open image to create a mask from.
1) Layers->View->Current Only - this makes sure only your current layer is visible. You can also just copy the current layer and paste as new image, whichever you prefer.
2) Lyaers -> New Mask -> From Image
3) Select current image from drop-down
4) Select "Source Luminance"
5) Hit "OK" to create the new mask.

The final option I can recommend is creating a Floating selection of the current layer, and then de-floating it above your mask.
1) Create a new mask
2) Select the layer you want to use for the mask
3) CTRL + A (Select All)
4) CTRL + F (Float Selection)
5) Move floating selection layer above the mask layer
6) Defloat

And I'm sure others have their own methods for this as well.

I know it wasn't part of the question, but just in case other people come across this as well. With Vectors it's a two-step process. Select the vector shape or layer and do Selections -> From Object. Then select the layer you want to mask and Layers -> New Mask -> Show/Hide Selection.
User avatar
paaddor
Posts: 2
Joined: Tue Nov 17, 2020 6:13 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel i5
ram: 32 GB
Video Card: RTX 2060M
Hard_Drive_Capacity: 1 TB
Corel programs: Paintshop Ultimate 2021

Re: Converting a raster layer into a mask layer

Post by paaddor »

Great, thanks alot. This works fine.
Post Reply