cairnswm
05-02-2003, 07:03 AM
I have an image (stored in a TDXImageList) that is displayed on the screen over my Map. This image is used to display the game state (selected units, orders, small map etc).
When the mouse is clicked on the screen how do I know if the mouse was clicked over a non-transparent portion of this image?
I have the Top,Left of the Image and the X,Y of the click, how do I know if the pixel of the image at that X,Y is transparent?
I need this to know when to pass the click through to the Map component of capture it in the game state component.
When the mouse is clicked on the screen how do I know if the mouse was clicked over a non-transparent portion of this image?
I have the Top,Left of the Image and the X,Y of the click, how do I know if the pixel of the image at that X,Y is transparent?
I need this to know when to pass the click through to the Map component of capture it in the game state component.