trichview.com

trichview.support




Re: getting color of current pixel in picture


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/14/2005 11:54:47


Get the picture under the mouse pointer (ClientToDocument, GetItemAt).

Get item coordinates (GetItemCoords). Find the picture coordinates (add

GetItem().GetBorderWidth, GetItem().GetBorderHeight to the item

coordinates).

Now you have the picture, the mouse coordinates, the coordinates of the

picture's top left corner. You can find the pixel.



>

> Sergey,

>

> I inserted a picture into a document. When the user clicks on the picture,

> I need to return the color at the position of the mouse click. How do I do

> this?

>

> Michael





Powered by ABC Amber Outlook Express Converter