Page 1 of 1

Pixel detection when using TrotateImage

PostPosted: March 26th, 2014, 4:34 pm
by delphi972
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

Re: Pixel detection when using TrotateImage

PostPosted: March 29th, 2014, 8:44 pm
by Kambiz
Hi,

You can use the RotatedPoint method of the component to get the rotated coordinate of the mouse cursor.