Appendix A: System Routines — Windows
1185
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinPixGet
Declaration:
WORD
WinPixGet
(WINDOW *
w
, WIN_COORDS
x0
, WIN_COORDS
y0
)
Category(ies):
Windows
Description:
Return the status of a pixel in a window: 0 or 1.
Inputs:
w
— WINDOW struct of a previously opened window.
x0, y0
— WINDOW coordinates of pixel to test.
Outputs:
1 if the selected pixel is on or 0 if it is off (or outside the window).
Assumptions:
Returns 0 if the given coordinates are outside the window.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinAttr, WinPixSet
Example:
/* The ptTest and pxlTest functions use WinPixGet to determine if a particular pixel
is turned on in the graph screen as shown in the following piece of code. */
if (WinPixGet(gr_active->grwinp, ix, iy))
Val = TRUE_TAG;
else
Val = FALSE_TAG;