Mathematically Combining Two Images

Paint Shop Pro can create a variety of effects using the Arithmetic effect, which combines two images to produce a third one that is determined by settings the user selects.

To combine images using the Arithmetic command:

  1. Open the two images you want to combine.

  2. Choose Image > Arithmetic to open the Image Arithmetic dialog.

  3. In the Source image #1 and Source image #2 drop-down boxes, select the images to combine. The size of Source image #1 deter­mines the size of the new image.

  4. In the Function group box, select a method for combining the images. The color data from the two images is combined on a pixel-by-pixel basis according to the function.

Function

New Color Value Equals

Add

Image 1 Value + Image 2 Value

Subtract

Image 1 Value - Image 2 Value

Multiply

Image 1 Value x Image 2 Value

Difference

Absolute Value of (Image 1 Value - Image 2 Value)

Lightest

Maximum of (Image 1 Value, Image 2 Value)

Darkest

Minimum of (Image 1 Value, Image 2 Value)

Average

(Image 1 value + Image 2 Value) / 2

Or

Binary Or

And

Binary And

  1. From the Channel panel, select the color channels to combine:

  2. Mark the All channels check box to use all the color channels in both images. This will produce a 24-bit image.

  3. Select a specific color channel for each image to produce a greyscale image.

  1. Set the Divisor and Bias modifiers. The modifiers are applied to the color values produced by the Formula and the Channel selec­tions.

  2. The Divisor number is used to divide the color values. It can reduce the effects of the other selections.

  3. The Bias number shifts each color value by a fixed amount. The number is added to the color value produced by the For­mula, Channel, and Divisor selections.

  1. Mark or clear the Clip color values check box to determine how Paint Shop Pro handles final color values greater than 255 and less than 0.

Check box Setting

If value is less than 0

If Value is more than 0

Selected

value = 0

value = 255

Cleared

value = 256 + value

value = value - 256

  1. Click OK.

Related Topics

Choosing Effects

Using the Effects Browser

Adding Noise 

Adding Picture Frames

Creating Your Own Effects