BlendFunc

Aus MCS Wiki AVR
Version vom 12. Dezember 2014, 22:12 Uhr von Admin (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Action

Specify pixel arithmetic.

 

 

Syntax

BlendFunc  src, dst 

 

 

Remarks

src

Specifies how the source blending factor is computed. One of ZEROONESRC_ALPHA,DST_ALPHA,ONE_MINUS_SRC_ALPHA or ONE_MINUS_DST_ALPHA.

dst

Specifies how the destination blending factor is computed, One of ZEROONESRC_ALPHA,DST_ALPHA,ONE_MINUS_SRC_ALPHA or ONE_MINUS_DST_ALPHA.

 

The blend function controls how new color values are combined with the values already in the color buffer.

Given a pixel value source and a previous value in the color buffer destination, the computed color is:

 

source × src + destination × dst

 

for each color channel: red, green, blue and alpha.

 

For more details please refer to the FT800 Series Programmer Guide.PDF from FTDI.

 

See also

Color_A

 

 

Example

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sprache