FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
129
Product Page
Document Feedback Copyright © Bridgetek Limited
4.33 RESTORE_CONTEXT
Restore the current graphics context from the context stack
Encoding
Parameters
None
Description
Restores the current graphics context, as described in section 4.1. Four (4) levels of
SAVE and RESTORE are available in the FT800. Any extra RESTORE_CONTEXT will
load the default values into the present context.
Examples
Saving and restoring context means that the second 'G' is drawn in red, instead of
blue:
dl( BEGIN(BITMAPS) );
dl( COLOR_RGB( 255, 0, 0 ) );
dl( SAVE_CONTEXT() );
dl( COLOR_RGB( 50, 100, 255 ) );
dl( VERTEX2II(80, 38, 31, 0x47) );
dl( RESTORE_CONTEXT() );
dl( VERTEX2II(110, 38, 31, 0x47) );
Graphics context
None
See also
SAVE_CONTEXT