Rgb32 Class Referencefinal

#include <Pt/Gfx/Rgb32.h>

Premultiplied ARGB-32 image format. More...

Inherits ImageFormat.

Public Member Functions

std::size_t pixelStride () const
 Returns the distance between two pixel base pointers in bytes.
 

Detailed Description

Stores pixel data as premultiplied ARGB-32. When colors are written from straight-alpha sources (ColorF, Color), the RGB channels are premultiplied by alpha. The sourceOver compositing uses the simplified premultiplied formula: dst = src + dst * (1 - src_alpha).