info@panadisplay.com
Hais kom muaj Encoding

Hais kom muaj Encoding

Apr 26, 2019

4.2 Hais kom ua encoding

Txhua cov lus hais kom ua tau tso tawm muaj ib qho 32-ntsis encoding. Qhov tseem ceeb tshaj ntawm cov cai

txiav txim siab qhov kev hais kom ua. Hais tsis tau (yog tias muaj) tuaj nyob rau qhov tsawg kawg nkaus

teeb meem loj. Cov khoom cim tseg tseg yuav tsum tau xoom.

Cov graphics primitives txhawb los ntawm FT800 thiab lawv qhov tseem ceeb yog hais

hauv qab

Table 4 FT800 Daim ntawv teev npe Graphics

image

Ntau hom bitmap uas tau txais kev txhawb los ntawm FT800 thiab lawv qhov kev sib piv yog hais

hauv qab

image

4.3 Ua kom pawg

4.3.1 Qhia Txog Lub Nroog Graphics

ALPHA_FUNC teeb tsa kev ua haujlwm ntawm alpha

BITMAP_HANDLE teem caij sib dhos bitmap

BITMAP_LAYOUT teem caij rau qhov muaj ntsis bitmap nco thiab layout rau

tam sim no kov

BITMAP_SIZE teeb qhov kev ntsuas ntawm cov duab bitmaps rau tam sim no

BITMAP_SOURCE teeb qhov chaw nyob rau bitmap graphics

BITMAP_TRANSFORM_A-F muab cov khoom ntawm lub npas hloov bitmap

BLEND_FUNC teeb pixel arithmetic

CELL tau teev cov xov tooj ntawm bitmap rau VERTEX2F hais kom ua

CLEAR kom meej cov pob buffers kom muaj nuj nqis preset

CLEAR_COLOR_A tau teev tus nqi zoo meej rau cov channel alpha

CLEAR_COLOR_RGB teeb qhov tseem ceeb rau xim liab, ntsuab thiab xiav

CLEAR_STENCIL teem caij rau tus nqi npliag

CLEAR_TAG tau teev meej meej rau qhov tsis tag

COLOR_A teem caij xim xim tam sim no

COLOR_MASK muaj cai los yog lov tes taw kev sau ntawv ntawm cov khoom xim

COLOR_RGB teeb lub xim liab, xim ntsuab thiab xiav

LINE_WIDTH teem caij dav

POINT_SIZE teeb taw tes me me

RESTORE_CONTEXT restore cov ntsiab lus teb tam sim no los ntawm lub ntsiab lus teb

SAVE_CONTEXT thawb cov ntsiab lus teeb duab ntawm lub ntsiab lus tseem ceeb

SCISSOR_SIZE teeb qhov luaj li cas ntawm cov duab plaub ceg kaum duab

SCISSOR_XY teem caij ces kaum sab saum toj ntawm daim duab qis duab clip

STENCIL_FUNC teev cov kev ua haujlwm thiab kev siv tus nqi rau kev xeem ntawv stencil

STENCIL_MASK tswj kev sau ntawv ntawm ib qho khoom rau hauv lub dav hlau stencil

STENCIL_OP teem caij ua qhov kev xeem stencil

TAG tau teev tus nqi ziag no

TAG_MASK tswj kev sau ntawv ntawm daim pib


4.3.2 Nqis tes ua yeeb yam

BEGIN pib kos ib daim duab qub

END tiav ib daim duab ua ntej

VERTEX2F muab ib lub vertex nrog cov chaw ua haujlwm ua haujlwm

VERTEX2II muab ib lub vertex nrog cov zauv uas zoo tshaj plaws


4.3.3 Tawm kev tswj

JUMP txim tuag lus txib ntawm lwm qhov chaw hauv daim ntawv sau

MACRO ua ib qho kev hais kom ua los ntawm cov ntawv sau npe ua lag luam

HU ua raws li cov lus txib ntawm lwm qhov chaw hauv

daim ntawv sau

Rov qab xa rov qab los ntawm ib qho kev hu ua CALL yav dhau los

TSIS TXHOB xaus cov lus sau


image

image

image