Exemple #1
0
        void cell_CellMouseDown(object sender, MedicalViewerCellMouseEventArgs e)
        {
            Rectangle Rec = _DicomMedicalViewer._CurrCell.GetDisplayedImageRectangle();
            X1 = e.X - Rec.X;

            Y1 = e.Y - Rec.Y;
        }
Exemple #2
0
 void cell_CellMouseDoubleClick(object sender, MedicalViewerCellMouseEventArgs e)
 {
    // pnlCellConfig.Size = new Size(769, 113);
 }
Exemple #3
0
 void cell_CellMouseUp(object sender, MedicalViewerCellMouseEventArgs e)
 {
     try
     {
         Rectangle Rec = _CurrCell.GetDisplayedImageRectangle();
         X2 = e.X - Rec.X;
         Y2 = e.Y - Rec.Y;
         ImgRec = Rec;
         if (_DicomMedicalViewer._IsCropping && blnhasJustCreated)
         {
             Crop();
             blnhasJustCreated = false;
         }
     }
     catch
     {
     }
 }
Exemple #4
0
        void cell_CellMouseClick(object sender, MedicalViewerCellMouseEventArgs e)
        {
            try
            {
                //MedicalViewerMultiCell cell = sender as MedicalViewerMultiCell;
                //AnnContainer container = cell.GetAnnotationContainer();
                //if (e.Button==MouseButtons.Left && container.Objects.Count > 0)
                //{
                //    // Convert from Image Coordinates to Point Coordinates
                //    Point point = cell.PointToImage(new Point(e.X, e.Y));

                //    AnnTextObject text = container.Objects[0] as AnnTextObject;
                    
                //    text.Bounds = new AnnRectangle(point.X, point.Y, text.Bounds.Width, text.Bounds.Height);
                //    container.Objects[0] = text;
                //    cell.SetAnnotationContainer(container);
                //    //cell.SubCells[0].SelectObject(cell.GetAnnotationContainer().Objects[0], true);
                //    //_DicomMedicalViewer._medicalViewer.Invalidate();
                //}
            }
            catch
            {
            }
        }