int DrawClear(int dr);
Clears the specified Draw surface.
Return Value
Return value not used.
Parameters
dr Handle to the Draw surface to be cleared.
Remarks
DrawClear() erases anything previously drawn on a Draw surface. Additionally, DrawClear() resets the default values for line and fill colors to 0x88888888, it resets the pen width to one pixel and it sets the current pen position to 0, 0. You should always provide the values for these properties any time you call this function, or after calling DrawAdd().
Availability
Available in DragonFireSDK 1.3 and later.
Example
#include "DragonFireSDK.h"
int MyDraw;
void AppMain() { MyDraw = DrawAdd(0, 0, 100, 100); // Set up my draw colors and pen width... DrawSetColor(MyDraw, 0xFF0000); DrawSetFillColor(MyDraw, 0x00FF00FF); DrawSetPenWidth(MyDraw, 2); // Set the Draw surface invisible... DrawSetVisible(MyDraw, 0); // Move the Draw surface.. DrawSetxy(MyDraw, 50, 50);
// Do some drawing... // Set the Draw surface visible again... DrawSetVisible(MyDraw, 1); // Clear the Draw surface... DrawClear(MyDraw); }
void AppExit() {
}
void OnTimer() {
} |