Winpixget - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Windows

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
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;
TI-89 / TI-92 Plus Developer Guide
— WINDOW struct of a previously opened window.
Not for Distribution
1185
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents