20-4
Programmer’s Manual
Hint
This is used for displaying image which needs a long time to generate. The
image can be plotted in other memory area by using ChangeWindow(). When
the image is drawn, it can be copied to the panning screen by calling
ChangeWindow() and PutRec().
20.3
ClearRec
Syntax
STATUS
ClearRec
(U16 greyLevel U16 xSrc U16 ySrc U16 width U16
height U16 style)
Description
Fills the given area with grey level indicated by greyLevel with style
Parameter
Return Value
PPSM_ERR_WIDTH
Invalid graphics output area width
PPSM_ERR_HEIGHT
Invalid graphics output area height
Name
Description
greyLevel
Grey level of the line
xSrc
Top left x-coordinate of the rectangular
area
ySrc
Top left y-coordinate of the rectangular
area
width
Width of the rectangular area in pixels
height
Height of the rectangular area in pixels
style
Output Style (AND_STYLE, OR_STYLE,
EXOR_STYLE, or REPLACE_STYLE).
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_LCD_X
Invalid x-coordinate
PPSM_ERR_LCD_Y
Invalid y-coordinate
PPSM_ERR_WIDTH
Invalid width
PPSM_ERR_HEIGHT
Invalid height
Name
Description
Personal Portable System Manager
Programmer’s Manual
Graphics ToGraphics Tools
20-5
Hint
If (xSrc ySrc) is (5, 10), width equals 20, and height equals 10, this will fill the
rectangle with top left corner at (5, 10) and bottom right corner at (24, 39) on
LCD with specified greyLevel
20.4
ClearScreen
Syntax
void
ClearScreen
(U16
Description
Fills the whole panning screen with grey level indicated by
Parameter
Return Value
CursorGetOrigin
Syntax
STATUS
CursorGetOrigin
Description
Returns the coordinate (
Parameter
PPSM_ERR_LCD_STYLE
Invalid style
Name
Description
greyLevel
Name
Description
None
Name
Description
xPos
yPos
Name
Description
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.