A newer version of Max is available. Click here to access the latest version of the documentation

jit.alphablend Reference

Blend two images with an alpha channel image

jit.alphablend

Description

Accesses the alpha channel (plane 0) of the input matrix in the left inlet as a per-cell crossfade value, and crossfades between the input matrices in the left and right inlets. In mode 0, a low value means more of the right input matrix, while a high value means more of the left input matrix. In mode 1, a low value means more of the left input matrix, while a high value means more of the right input matrix.

Examples

Matrix Operator

matrix inputs:2, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in2 resamp 1 1 1 1 1 char float32 float64
out n/a 1 1 1 1 1 char float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

mode [int]

Crossfade mode (default = 0 (left to right))
0 = crossfade right to left
1 = crossfade left to right

Possible values:

0 = 'Left-to-Right'
1 = 'Right-to-Left'

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.op
jit.pack
jit.unpack
jit.xfade
Tutorial 29: Using the Alpha Channel Tutorial 29: Using the Alpha Channel