Screen transparency types

Types of window transparencies.

Synopsis:

#include <screen/screen.h>
 
 enum {
      SCREEN_TRANSPARENCY_SOURCE = 0   
      SCREEN_TRANSPARENCY_TEST = 1   
      SCREEN_TRANSPARENCY_SOURCE_COLOR = 2   
      SCREEN_TRANSPARENCY_SOURCE_OVER = 3   
      SCREEN_TRANSPARENCY_NONE = 4   
      SCREEN_TRANSPARENCY_DISCARD = 5   
};

Data:

SCREEN_TRANSPARENCY_SOURCE
Destination pixels are replaced by source pixels, including the alpha channel.
SCREEN_TRANSPARENCY_TEST
Destination pixels are replaced by source pixels when the alpha channel is greater than 0.
SCREEN_TRANSPARENCY_SOURCE_COLOR
Destination pixels are replaced by source pixels when the color does not match a display-defined value.
SCREEN_TRANSPARENCY_SOURCE_OVER
Typical alpha blending; the source pixels are blended over the destination pixels.
SCREEN_TRANSPARENCY_NONE
Destination pixels are replaced by fully-visible source pixels.
SCREEN_TRANSPARENCY_DISCARD
Source is considered completely transparent; the destination is not modified.

Library:

libscreen

Description:

Last modified: 2013-12-21

comments powered by Disqus