EasyManua.ls Logo

Bridgetek FT801 - Save Context

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
131
Product Page
Document Feedback Copyright © Bridgetek Limited
4.35 SAVE CONTEXT
Push the current graphics context on the context stack
Encoding
31 24
23 0
0x22
Reserved
Parameters
None
Description
Saves the current graphics context, as described in section 4.1. Any extra
SAVE_CONTEXT will throw away the earliest saved 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
RESTORE_CONTEXT

Table of Contents