1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXPeekARGB</title> 10</head> 11 12<body> 13 14<h1 align="left">GXPeekARGB</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE></dd> 21<dd><pre><CODE>void GXPeekARGB( u16 x, u16 y, u32* color );</CODE></pre></dd> 22</dl> 23 24<h2>Arguments</h2> 25<TABLE border="1" cellpadding="3" cellspacing="0.1"> 26 <tr> 27<TD width="120" valign="top" bgcolor="#ffffe8"><CODE><em><strong>x</strong></em></font></TD> 28<TD width="520">The<em>x</em> coordinate, in pixels (0 - 639).</TD> 29 </tr> 30 <tr> 31<TD width="120" valign="top" bgcolor="#ffffe8"><CODE><em><strong>y</strong></em></font></TD> 32<TD width="520">The <em>y</em> coordinate, in lines (0 - 527).</TD> 33 </tr> 34 <tr> 35<TD width="120" valign="top" bgcolor="#ffffe8"><CODE><em><strong>color</strong></em></font></TD> 36<TD width="520"><p>Pointer to a u32. Color read is in ARGB format, eight bits per component. 37 </p> 38 39</TD> 40 </tr> 41</TABLE> 42<h2>Return Values</h2> 43 44<p>None.</p> 45<H2>Description</H2> 46<P>This function allows the CPU to read a <code>color</code> value directly from the Embedded Frame Buffer (EFB) at position <code>x,y</code>.</P> 47<P>For an antialiased frame buffer, only subsample 0 of a pixel is read. The returned color is in 32-bit format.</P> 48 49 50 51 52<h2>See Also</h2> 53<P><a href="GXPeekZ.html">GXPeekZ</a><br> <a href="GXPokeARGB.html">GXPokeARGB</a><br></P> 54<h2>Revision History</h2> 55<P>2006/03/01 Initial version.</P> 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML> 60