|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1379 |
Box & BoxFilled |
le 09/04/2006 @ 17:09 par Emerson
|
1) Why does the BOX command always draw boxes with thick lines even when HIGHRES 1 is set (compared to drawing with the LINE statement)?
2) In HIGHRES 1 mode, BOX 0,30 to 320,320 draws a box with the left border thin and the rest thick. This becomes fixed if I changed it to BOX 1,30 to 320,320 .
3) Still in HIGHRES 1 mode, BOX and BOXFILLED can start at 0,0 and end at 320,320 giving it a 321 pixel difference. Compared to LINE statement which can start at 0,0 and end at 319,319 which gives the correct 320 pixel difference. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 09/04/2006 @ 22:22 par aldweb
visiteur |
Hello Emerson,
1) I do not get the same effect when using my IBPlot sample application in my Tungsten C. Could you give me more material to analyse what's happening?
2) I will check that. But it is true that, for BOX and BOXFILLED, I use an API that draws with one pixel difference to the absolute coordinates. So, I remember dealing with it to correct it... that might be the reason why you find yourself with a 1 pixel difference between the BOXFILLED and the LINE statements.
Overall, I get the feeling that I should build a code that draws BOXes myself, using 4 LINEs instead of using the box API from Palm...
Cheers, aldweb
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 10/04/2006 @ 17:15 par Emerson
visiteur |
In SETRES 0 (screen is 160x160) The BOX statement draws boxes with line thickness the same as using LINE itself.
But in SETRES 1 (screen is 320x320) The BOX statement still draws the same thick bordered box. LINE on the other hand, draws thinner lines.
My device is a Treo 650.
For consistency with coordinates, I used LINE instead to replace both BOX and BOXFILLED. It's kinda slower actually (noticeable for BOXFILLED) but it works. |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|