コード例 #1
0
ファイル: ROICircle.cs プロジェクト: chensen/WellsTools
        /// <summary>Paints the ROI into the supplied window</summary>
        /// <param name="window">HALCON window</param>
        public override void draw(hvppleDotNet.HWindow window, int imageWidth, int imageHeight)
        {
            window.DispCircle(midR, midC, radius);

            double littleRecSize = getHandleWidth(imageWidth, imageHeight);

            window.SetDraw("fill");
            window.DispRectangle2(row1, col1, 0, littleRecSize, littleRecSize);
            window.DispRectangle2(midR, midC, 0, littleRecSize, littleRecSize);
            window.SetDraw("margin");
        }