Qt 4.8
Public Functions | Public Variables | List of all members
Blend_ARGB32_on_ARGB32_SourceAndConstAlpha Struct Reference

Public Functions

 Blend_ARGB32_on_ARGB32_SourceAndConstAlpha (quint32 alpha)
 
void flush (void *)
 
void write (quint32 *dst, quint32 src)
 

Public Variables

quint32 m_alpha
 
quint32 m_ialpha
 

Detailed Description

Definition at line 596 of file qblendfunctions.cpp.

Constructors and Destructors

◆ Blend_ARGB32_on_ARGB32_SourceAndConstAlpha()

Blend_ARGB32_on_ARGB32_SourceAndConstAlpha::Blend_ARGB32_on_ARGB32_SourceAndConstAlpha ( quint32  alpha)
inline

Definition at line 597 of file qblendfunctions.cpp.

597  {
598  m_alpha = (alpha * 255) >> 8;
599  m_ialpha = 255 - m_alpha;
600  }

Functions

◆ flush()

void Blend_ARGB32_on_ARGB32_SourceAndConstAlpha::flush ( void *  )
inline

Definition at line 607 of file qblendfunctions.cpp.

607 {}

◆ write()

void Blend_ARGB32_on_ARGB32_SourceAndConstAlpha::write ( quint32 dst,
quint32  src 
)
inline

Definition at line 602 of file qblendfunctions.cpp.

602  {
603  src = BYTE_MUL(src, m_alpha);
604  *dst = src + BYTE_MUL(*dst, qAlpha(~src));
605  }
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
Definition: qrgb.h:66
Q_STATIC_INLINE_FUNCTION uint BYTE_MUL(uint x, uint a)

Properties

◆ m_alpha

quint32 Blend_ARGB32_on_ARGB32_SourceAndConstAlpha::m_alpha

Definition at line 609 of file qblendfunctions.cpp.

◆ m_ialpha

quint32 Blend_ARGB32_on_ARGB32_SourceAndConstAlpha::m_ialpha

Definition at line 610 of file qblendfunctions.cpp.


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