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

Public Functions

void flush (void *)
 
void write (quint16 *dst, const qargb8565 &src)
 

Detailed Description

Definition at line 111 of file qblendfunctions.cpp.

Functions

◆ flush()

void Blend_ARGB24_on_RGB16_SourceAlpha::flush ( void *  )
inline

Definition at line 122 of file qblendfunctions.cpp.

122 {}

◆ write()

void Blend_ARGB24_on_RGB16_SourceAlpha::write ( quint16 dst,
const qargb8565 src 
)
inline

Definition at line 112 of file qblendfunctions.cpp.

112  {
113  const uint alpha = src.alpha();
114  if (alpha) {
115  quint16 s = src.rawValue16();
116  if (alpha < 255)
117  s += BYTE_MUL_RGB16(*dst, 255 - alpha);
118  *dst = s;
119  }
120  }
Q_STATIC_INLINE_FUNCTION uint BYTE_MUL_RGB16(uint x, uint a)
quint8 alpha() const
unsigned short quint16
Definition: qglobal.h:936
unsigned int uint
Definition: qglobal.h:996
quint16 rawValue16() const

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