![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Bug Reports Post about errors or bugs encountered. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Erel can u post the list of what the color constants are actually set to?
Are they stored in a file or in the core of the Basic4ppc app? Theres a slight problem that Ive come accross with some colors. Due to 'rounding' on the screen. It would be better if colour constants were set to exactly what they will be read back as e.g. plot (1,1,cPurple) if getpixel(1,1)=cpurple then msgbox("True") else Msgbox("False") ...Will return False.! Reason is screen R,G,B,s are stored to the nearest 8 for each R,G,B component If the constants were set to the exact screen value the colors will still be the same but you could also use the color constants for checking pixels! Last edited by colin9876 : 12-11-2007 at 08:47 AM. |
|
|||
|
cPurple is defined as = -8388480
RGB(128,0,128) plot it and read it back gives -8126332 RGB(132,0,132) What I was saying is better if cPurple defined as (132,0,132) Looks exactly the same but reads back the same as it writes! Last edited by colin9876 : 12-11-2007 at 05:39 PM. |
|
|||
|
Yes nice idea about write it & read it back to set it.
Just out of interest Erel what device did u try that cPurple did read and write at (128,0,128)? All my pda phones read it back at (132,...) which is making me think that it is WM that does the rounding? - in which case all devices ought to be the same? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hexadecimal constants? | mjcoon | Questions & Help Needed | 5 | 06-19-2008 12:48 PM |
| Background Color | im4retro | Basic4ppc Wishlist | 1 | 05-27-2008 06:11 PM |
| Background Color | im4retro | Questions & Help Needed | 2 | 05-27-2008 04:55 PM |
| Image1.color | cosmo15900 | Questions & Help Needed | 3 | 02-02-2008 10:47 PM |
| VB color value | Leginus | Questions & Help Needed | 6 | 01-19-2008 11:58 AM |