In my application dicom image is rendered on picturebox of winform..When i clike on image by mouse using mouse move event i got mouse coordinates i.e. location at that point as..
private void OnMouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
{
Point point =new Point(e.Location);
}
}
}
Using above code me getting only mouse coordinates but i want pixel coordinateds of image which is render on picturebox at that location...Please help me.
Loading
Kurt AmbrosePosted Mar 5, 2021, 2:54 PM
I know this is an older post but if anyone comes across this post with a similar use case, I would recommend checking out the LEADTOOLS SDK’s MedicalViewerCell.CellMouseClick event. This is a paid for toolkit and I do work for this vender.
https://www.leadtools.com/help/sdk/v21/dh/mv/medicalviewercell-cellmouseclick.html#!
The MedicalViewerCell.CellMouseClick will provide the X and Y coordinates in the event handler by using some code similar to this.
Marsi WatsonPosted Jan 23, 2014, 12:30 PM
http://stackoverflow.com/questions/18210030/get-pixelvalue-when-click-on-a-picturebox
If you want to get the ability to handle dicom images, I can suggest using a commercial toolkit that can handle different types of images (including DICOM) such as lead tools.