Tsev > Xov xwm > Ntsiab lus

CMD-DIAL - Kos Ib Lub Tebchaws Dial

Apr 27, 2019

image

C daim ntawv prototype

tsis muaj dabtsis cmd_dial (int16_t x,

int16_t y,

int16_t r,

uint16_t xaiv,

uint16_t val);

Cov lus qhia

x

x-coordinate qhov chaw xaj, hauv pixels

y

y-coordinate ntawm chaw hu, hauv pixels

r

vojvoog ntawm kev hu, hauv pixels.

Kev xaiv

Yog vim li cas tus ntaus yog drawnwith ib 3D effect thiab tus nqi ntawm cov kev xaiv yog xoom.

Kev xaiv OPT_FLAT tshem tawm cov nyhuv 3D thiab nws tus nqi yog 256

val

Qhia kom meej ntawm txoj hauj lwm ntawm cov lus taw qhia los ntawm qhov ntsuas ntawm 0 thiab 65535

suav txhua tus. 0 txhais tau hais tias lub ntsiab lus sib txuas ncaj nraim, 0x4000 sab laug, 0x8000 li,

thiab0xc000 txoj cai.

Kev piav qhia

Cov ntsiab lus ntawm lub cev dimension yog

 Qhov kos yog ib txoj kab ntawm dav r * (12/256), kos rau ntawm qhov chaw nrug r * (140/256)

r * (210/256) los ntawm qhov chaw

Xa mus rau cov tshuab hluav taws xob cav cov voj voog ntawm lub cev kom paub ntxiv.

image

image

image