![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
As the device supports only 65k colors some values may change a little bit.
Add a msgbox before your code: Msgbox("GetPixel color: " & frmGalilean.GetPixel(px,py) & crlf & "cYellow: " & cYellow & crlf & "cWhite: " & cWhite) What values do you get? (note that cWhite and cYellow are constants) |
|
||||
|
Hi Erel,
Your second approach did the trick. This works for both, desktop and PPC: If pos > 3 And pos < 3.3 Then If frmGalilean.GetPixel(px,py)=frmGalilean.GetPixel(x 0,y0) Then frmGalilean.Circle(px,py,1,cYellow ,F) else frmGalilean.Circle(px,py,1,cWhite,F) end if Else frmGalilean.Circle(px,py,1,cWhite,F) End If Obviously, on the PPC, I must not use the color of a coordinate exactly onto which the circle is to be drawn. Don't ask me why ![]() Anyway, thanks so much for your prompt attention. Cheers Robert |
![]() |
| 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 |
| Problem of Getpixel on PocketPC 2000 and PocketPC 2003 | hung | Bug Reports | 3 | 08-21-2007 02:46 AM |
| ImageLib & Getpixel - bugs or user errors? | LineCutter | Questions & Help Needed | 4 | 05-24-2007 06:05 PM |