libgpac
Documentation of the core library of GPAC
ColorMatrix Interface Reference

import"evg.idl";

Public Member Functions

 ColorMatrix ()
 
 ColorMatrix (ColorMatrix from)
 
 ColorMatrix (double coefs...)
 
ColorMatrix multiply (ColorWatrix with)
 
Color apply (DOMString color)
 
Color apply (Color color)
 
Colorf applyf (DOMString color)
 
Colorf apply (Color colorf)
 

Data Fields

attribute double rr
 
attribute double rg
 
attribute double rb
 
attribute double ra
 
attribute double tr
 
attribute double gr
 
attribute double gg
 
attribute double gb
 
attribute double ga
 
attribute double tg
 
attribute double br
 
attribute double bg
 
attribute double bb
 
attribute double ba
 
attribute double tb
 
attribute double ar
 
attribute double ag
 
attribute double ab
 
attribute double aa
 
attribute double ta
 
attribute boolean identity
 

Detailed Description

color matrix

Constructor & Destructor Documentation

◆ ColorMatrix() [1/3]

ColorMatrix::ColorMatrix ( )

constructor

◆ ColorMatrix() [2/3]

ColorMatrix::ColorMatrix ( ColorMatrix  from)

constructor

Parameters
fromthe color matrix to use

◆ ColorMatrix() [3/3]

ColorMatrix::ColorMatrix ( double  coefs...)

constructor

Parameters
coefsthe matrix coeficients

Member Function Documentation

◆ multiply()

ColorMatrix ColorMatrix::multiply ( ColorWatrix  with)

multiplies two color matrix this * with

Parameters
withcolor matrix to multiply with
Returns
the ColorMatrix

◆ apply() [1/3]

Color ColorMatrix::apply ( DOMString  color)

apply a color transformation as 8bit RGB

Parameters
coloran HTML/SVG color name or an HTML color value formatted as $RRGGBB, #RRGGBB or 0xRRGGBB
Returns
transformed color

◆ apply() [2/3]

Color ColorMatrix::apply ( Color  color)

apply a color transformation as 8bit RGB

Parameters
colora color interface
Returns
transformed color

◆ applyf()

Colorf ColorMatrix::applyf ( DOMString  color)

apply a color transformation as float RGB

Parameters
coloran HTML/SVG color name or an HTML color value formatted as $RRGGBB, #RRGGBB or 0xRRGGBB
Returns
transformed color

◆ apply() [3/3]

Colorf ColorMatrix::apply ( Color  colorf)

apply a color transformation as float RGB

Parameters
colorfa color interface
Returns
transformed color

Field Documentation

◆ rr

attribute double ColorMatrix::rr

rr

◆ rg

attribute double ColorMatrix::rg

rg

◆ rb

attribute double ColorMatrix::rb

rb

◆ ra

attribute double ColorMatrix::ra

ra

◆ tr

attribute double ColorMatrix::tr

tr

◆ gr

attribute double ColorMatrix::gr

gr

◆ gg

attribute double ColorMatrix::gg

gg

◆ gb

attribute double ColorMatrix::gb

gb

◆ ga

attribute double ColorMatrix::ga

ga

◆ tg

attribute double ColorMatrix::tg

tg

◆ br

attribute double ColorMatrix::br

br

◆ bg

attribute double ColorMatrix::bg

bg

◆ bb

attribute double ColorMatrix::bb

bb

◆ ba

attribute double ColorMatrix::ba

bb

◆ tb

attribute double ColorMatrix::tb

tb

◆ ar

attribute double ColorMatrix::ar

ar

◆ ag

attribute double ColorMatrix::ag

ag

◆ ab

attribute double ColorMatrix::ab

ab

◆ aa

attribute double ColorMatrix::aa

aa

◆ ta

attribute double ColorMatrix::ta

ta

◆ identity

attribute boolean ColorMatrix::identity

identity