Re: Shahab: Reading Pixels
Shahab-o-ddin Mokhtari <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hi Comboy, Thanks for your answer, but that was not my question and I was one who answered the question!!!! I type my nam in subject to understand which mail is my answer (I have not wnough time to check all answers! :( ) So, thnx again and bye Shahab :) ------------------------------------- Comboy <[email protected]> wrote: Hi shahab, Colors are integers, so to get pixel color do showmessage(inttostr (canvas.pixels[i,j])); to get mouse cursor position do: var x,y:integer; begin x:=mousecursor.position.x; y:=mousecursor.position.y; Example: if canvas.pixels [mousecursor.position.x,mousecursor.position.y]:=clred then showmessage('You''ve picked Switzerland!'); But remember, each country must have a different color. I'm not sure about the codes I'm writing them from my mind, I would check them later if there are any errors.(I think you should change mousecursor to cursor) wishes, comboy Yahoo! Groups SponsorADVERTISEMENT CodeCoffer - new Delphi code protection Tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Sincerely Yours Shahab-o-ddin Mokhtari [http://Ceramic81.150m.com] [[email protected]] [http://ShahabM.8m.com] --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor ---------------------~--> Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more. http://www.c1tracking.com/l.asp?cid=5510 http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> CodeCoffer - new Delphi code protection Tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/