Qt 4.8
Public Functions | List of all members
Blend_ARGB32_on_RGB16_SourceAlpha Struct Reference

Public Functions

void flush (void *)
 
void write (quint16 *dst, quint32 src)
 

Detailed Description

Definition at line 146 of file qblendfunctions.cpp.

Functions

◆ flush()

void Blend_ARGB32_on_RGB16_SourceAlpha::flush ( void *  )
inline

Definition at line 157 of file qblendfunctions.cpp.

157 {}

◆ write()

void Blend_ARGB32_on_RGB16_SourceAlpha::write ( quint16 dst,
quint32  src 
)
inline

Definition at line 147 of file qblendfunctions.cpp.

147  {
148  const quint8 alpha = qAlpha(src);
149  if(alpha) {
151  if(alpha < 255)
152  s += BYTE_MUL_RGB16(*dst, 255 - alpha);
153  *dst = s;
154  }
155  }
Q_STATIC_INLINE_FUNCTION uint BYTE_MUL_RGB16(uint x, uint a)
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
Definition: qrgb.h:66
unsigned char quint8
Definition: qglobal.h:934
unsigned short quint16
Definition: qglobal.h:936
static quint16 convert_argb32_to_rgb16(quint32 spix)

The documentation for this struct was generated from the following file: