Using Mix Modes

  Previous  Next

Introduction

The function SetMixMode offers the possibility to set the mix mode of a Layer. The function GetMixMode retrieves the mix mode currently in use. They are declared as follows:

void SetMixMode(int mode)

int GetMixMode() 

 

For the parameter mode one of the values described in the table below must be used. If mode has an invalid value, nothing will happen and a message will be displayed inside the Script output window of the Script editor. You can find more information about mix modes and their usage in the MADRIX manual.

 

Mix Mode Constants

Identifier / Mix Mode

Description

int MIXMODE_NORMAL

The Normal mix mode.

int MIXMODE_DARKEN

The Darken mix mode.

int MIXMODE_MULTIPLY

The Multiply mix mode.

int MIXMODE_COLORBURN

The Color Burn mix mode.

int MIXMODE_LINEARBURN

The Linear Burn mix mode.

int MIXMODE_LIGHTEN

The Lighten (HTP) mix mode.

int MIXMODE_SCREEN

The Screen mix mode.

int MIXMODE_COLORDODGE

The Color Dodge mix mode.

int MIXMODE_LINEARDODGE

The Linear Dodge mix mode.

int MIXMODE_OVERLAY

The Overlay mix mode.

int MIXMODE_SOFTLIGHT

The Soft Light mix mode.

int MIXMODE_HARDLIGHT

The Hard Light mix mode.

int MIXMODE_VIVIDLIGHT

The Vivid Light mix mode.

int MIXMODE_LINEARLIGHT

The Linear Light mix mode.

int MIXMODE_PINLIGHT

The Pin Light mix mode.

int MIXMODE_HARDMIX

The Hard Mix mix mode.

int MIXMODE_DIFFERENCE

The Difference mix mode.

int MIXMODE_EXCLUSION

The Exclusion mix mode.

int MIXMODE_MASK

The Mask mix mode.

 

MADRIX 3.X To MADRIX 5.X Migration Hints

The following constants are not supported anymore. Please follow the hints to migrate your macros.

int MIXMODE_AND

Use MIXMODE_MULTIPLY instead.

int MIXMODE_OR

Use MIXMODE_LIGHTEN instead.

int MIXMODE_XOR

Use MIXMODE_DIFFERENCE instead.

int MIXMODE_NAND

This constant is not supported anymore.

int MIXMODE_NOR

This constant is not supported anymore.

 

MADRIX Version: 5.6 | Script Version: 3.18
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100%
 Previous   Next

 


Enable automatic translation | Activer la traduction automatique |