gfx_image_blend_functions.h File Reference

Namespaces

 maxon
 

Macros

#define SIMPLE_BLEND_RGB(background, foreground, blendFunction)
 

Enumerations

enum class  BLEND_MODES {
  ADD ,
  AVERAGE ,
  COLOR ,
  COLORBURN ,
  COLORDODGE ,
  DARKEN ,
  DARKER ,
  DIFFERENCE ,
  DISSOLVE ,
  DIVIDE ,
  EXCLUSION ,
  FREEZE ,
  GLOW ,
  HARDLIGHT ,
  HARDMIX ,
  HEAT ,
  HUE ,
  HYPOT ,
  LEVR ,
  LIGHTEN ,
  LIGHTER ,
  LINEARBURN ,
  LINEARDODGE ,
  LUMINANCE ,
  MULTIPLY ,
  OVER ,
  OVERLAY ,
  PINLIGHT ,
  REFLECT ,
  SATURATION ,
  SCREEN ,
  SOFTLIGHT ,
  SUBTRACT ,
  VIVIDLIGHT ,
  XOR ,
  PASSFOLDER ,
  STAMP
}
 

Functions

template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendOver (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendAverage (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendMultiply (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendScreen (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendSubtract (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendDivide (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendAdd (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendOverlay (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendHardLight (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendSoftLight (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendDarken (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendLighten (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendPinLight (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendDifference (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendExclusion (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendNegative (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendStamp (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendXor (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendGlow (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendReflect (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendHeat (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendFreeze (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendHypot (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE Dissolve (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendHardMix (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendColorDodge (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendColorBurn (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendLinearDodge (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendLinearBurn (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename FLOATTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE FLOATTYPE BlendVividLight (FLOATTYPE background, FLOATTYPE foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendHue (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendSaturation (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendLuminance (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendColor (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendLevr (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
static MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE::ValueType LuminanceColor (const COLORTYPE &color)
 
template<typename COLORATYPE >
static MAXON_ATTRIBUTE_FORCE_INLINE COLORATYPE::ValueType LuminanceColorA (const COLORATYPE &color)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendDarker (const COLORTYPE &background, const COLORTYPE &foreground)
 
template<typename COLORTYPE >
MAXON_ATTRIBUTE_FORCE_INLINE COLORTYPE BlendLighter (const COLORTYPE &background, const COLORTYPE &foreground)
 
enum maxon::BLEND_MODES MAXON_ENUM_LIST (BLEND_MODES)
 
template<BLEND_MODES MODE, typename COLORATYPE >
static MAXON_ATTRIBUTE_FORCE_INLINE COLORATYPE BlendRGBA (const COLORATYPE &background, const COLORATYPE &foreground, typename COLORATYPE::ValueType opacity)
 

Variables

 ADD
 
 AVERAGE
 
 COLOR
 
 COLORBURN
 
 COLORDODGE
 
 DARKEN
 
 DARKER
 
 DIFFERENCE
 
 DISSOLVE
 
 DIVIDE
 
 EXCLUSION
 
 FREEZE
 
 GLOW
 
 HARDLIGHT
 
 HARDMIX
 
 HEAT
 
 HUE
 
 HYPOT
 
 LEVR
 
 LIGHTEN
 
 LIGHTER
 
 LINEARBURN
 
 LINEARDODGE
 
 LUMINANCE
 
 MULTIPLY
 
 OVER
 
 OVERLAY
 
 PINLIGHT
 
 REFLECT
 
 SATURATION
 
 SCREEN
 
 SOFTLIGHT
 
 SUBTRACT
 
 VIVIDLIGHT
 
 XOR
 
 PASSFOLDER
 
 STAMP
 

Macro Definition Documentation

◆ SIMPLE_BLEND_RGB

#define SIMPLE_BLEND_RGB (   background,
  foreground,
  blendFunction 
)

Variable Documentation

◆ ADD

ADD

◆ AVERAGE

AVERAGE

◆ COLOR

COLOR

◆ COLORBURN

COLORBURN

◆ COLORDODGE

COLORDODGE

◆ DARKEN

DARKEN

◆ DARKER

DARKER

◆ DIFFERENCE

DIFFERENCE

◆ DISSOLVE

DISSOLVE

◆ DIVIDE

DIVIDE

◆ EXCLUSION

EXCLUSION

◆ FREEZE

FREEZE

◆ GLOW

GLOW

◆ HARDLIGHT

HARDLIGHT

◆ HARDMIX

HARDMIX

◆ HEAT

HEAT

◆ HUE

HUE

◆ HYPOT

HYPOT

◆ LEVR

LEVR

◆ LIGHTEN

LIGHTEN

◆ LIGHTER

LIGHTER

◆ LINEARBURN

LINEARBURN

◆ LINEARDODGE

LINEARDODGE

◆ LUMINANCE

LUMINANCE

◆ MULTIPLY

MULTIPLY

◆ OVER

OVER

◆ OVERLAY

OVERLAY

◆ PINLIGHT

PINLIGHT

◆ REFLECT

REFLECT

◆ SATURATION

SATURATION

◆ SCREEN

SCREEN

◆ SOFTLIGHT

SOFTLIGHT

◆ SUBTRACT

SUBTRACT

◆ VIVIDLIGHT

VIVIDLIGHT

◆ XOR

XOR

◆ PASSFOLDER

PASSFOLDER

◆ STAMP

STAMP