So here's some steps to replicate the issue.
1) Create a new RGB image and fill it with black.
2) Draw something in white in the middle of this image with a fine, sharp brush.
3) Make sure the layer is a background layer. If not, select merge layers to make it a background layer.
4) Open the User Defined Filter and enter the following coefficients to produce a simple high-pass filter:
Code: Select all
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 -1 0 0 0
0 0 -1 4 -1 0 0
0 0 0 -1 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
Divisor: 4
Bias: 128
R, G, B: All checkedThe result should be a gray image with outlines around what was drawn in it, which is the desired result.
6) Undo the last step to return to the image as it was before.
7) Now turn the background layer into a raster layer; either use the Pick tool and click on the image, or double-click the background layer in the layer palette and click OK in the dialog.
8) Open the User Defined Filter again and apply the same settings as in step 4.
9) Click OK to apply the filter
The resulting image will now be transparent with faint black outlines, which should not be the case. The filter should not affect the alpha channel at all, and there should be both bright and dark RGB values in the outlines.
This does not happen if one of the RGB channels is deselected when applying the filter, or when the coefficients in the matrix add up to a big enough positive value.
I observed this in both PaintShop Pro X6 and PaintShop Pro 2021, but not in PaintShop Pro 9.
If others can replicate this, please feel free to file a bug report with Corel so that they might take some interest in fixing it. The filter I've shown in the example above is exactly the kind of stuff the User Defined Filter is designed for, and it being broken like this makes it almost pointless. A workaround is to apply it twice; once to only two of the RGB channels and once again to the remaining channel, but that kind of workaround shouldn't be needed.
Edit: Clarified some of the steps.
Edit 2: Clarified some of the steps further to avoid confusion (I wrote the post in a bit of a hurry...)
