GXPeekARGB

Syntax

#include <revolution/gx.h>

void GXPeekARGB( u16 x, u16 y, u32* color );

Arguments

x The x coordinate, in pixels; 0 <= x <= 639
y The y coordinate, in lines; 0 <= y <= 527
color Pointer to a u32. Color read is in ARGB format, eight bits per component.

Return Values

None.

Description

This function allows the CPU to read a color value directly from the embedded frame buffer (EFB) at position x, y.

For an anti-aliased frame buffer, only the subsample of a pixel is read. The returned color is in 32-bit format.

See Also

GXPeekZ, GXPokeARGB, GXPokeAlphaRead

Revision History

2008/05/15 Added GXPokeAlphaRead to See Also.
2006/03/01 Initial version.


CONFIDENTIAL