Pixel detection when using TrotateImage

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Pixel detection when using TrotateImage

Postby delphi972 » March 26th, 2014, 4:34 pm

hi

first sorry for my bad english, i am french :)

i just installed TrotateImage

i am trying to display cards game, but i have a problem whith mouse cursor

Image

as you can see on the picture there are 4 TrotateImages

cursor must be a hand when moving on the PICTURE of the TrotateImage : no on all the TrotateImage, but only on the picture ! i think you can understand what i explain

so on the mouse move i am trying to get pixel, if pixel is $FFFFFFFF (no picture on it) the cursor must be changed by default

the problem is the pixel is wrong !

please on my picture check the navy bleu "X" it's the position of my mouse when i take screen shot, and the pixel color is on Tmemo clwhite :(

i think the pixel don't consider picture inclinaison, so pixel is wrong

i hope you can understand my problem and have a solution to help me

thanks
delphi972
Member
Member
 
Posts: 1
Joined: March 26th, 2014, 3:53 pm

Re: Pixel detection when using TrotateImage

Postby Kambiz » March 29th, 2014, 8:44 pm

Hi,

You can use the RotatedPoint method of the component to get the rotated coordinate of the mouse cursor.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 18 guests

cron