Tsev > Xov xwm > Ntsiab lus

Daim Ntawv Sau Cov Lus Qhia

Apr 26, 2019

4 Tso npe sau cov lus txib

Lub cav cav ntawm FT800 yuav siv cov lus qhia los ntawm cov ntaub ntawv sau ua cim RAM_DL nyob rau hauv

daim ntawv ntawm cov lus txib. Txhua qhov kev hais plaub yog 4 bytes ntev thiab ib daim ntawv sau tau sau

mus txog 2048 lus txib vim qhov loj ntawm RAM_DL yog 8K bytes. Lub cav cav ntawm lub

FT800 ua haujlwm ua haujlwm raws li lub ntsiab txhais ntawm cov lus txib.

4.1 Lub Nroog Graphics

Lub xeev daim duab uas tswj cov duab yog muab cia rau hauv cov ntsiab lus teb. Tus kheej

tej daim ntawm lub xeev tuaj yeem hloov tau los ntawm cov khoom tsim cov lus qhia (piv txwv

COLOR_RGB) thiab tag nrho lub xeev tau txais kev cawmdim thiab rov qab siv lub SAVE_CONTEXT

thiab RESTORE_CONTEXT lus txib.

Lus hauv no teb Nco ntsoov tias bitmap lub xeev yog tshwj xeeb: Txawm hais tias tus bitmap kov yog ib feem ntawm cov

graphics ntsiab lus, qhov tsis rau txhua qhov kev txiav nyiaj bitmap tsis yog ib qho ntawm cov duab

ntsiab lus. Lawv yog cov uas tsis tau dim thiab tsis txum tim los ntawm SAVE_CONTEXT thiab

RESTORE_CONTEXT. Cov kev txwv no raug hloov ntawm BITMAP_SOURCE,

BITMAP_LAYOUT, thiab BITMAP_SIZE lus txib. Thaum cov teebmeem no teeb tsa, lawv

tuaj yeem siv tau ntawm cov ntaub ntawv tso tawm kom txog rau thaum lawv tau hloov.

SAVE_CONTEXT thiab RESTORE_CONTEXT yog muaj ntawm ib pawg 4 theem ntxiv rau

cov ntsiab lus teb tam sim no. Cov lus hauv qab no qhia ntau yam tsis nyob hauv

graphics ntsiab lus.

Table 3 Graphics Context

image

image