Beispiel #1
0
        /// <summary>
        /// 指示点是否包含在层的HitPathGeometry中
        /// </summary>
        /// <param name="pt"></param>
        /// <returns></returns>
        public bool FillContainsPoint(PointF pt)
        {
            if (isComputedStraight && IsUseOrgHitGeometry)
            {
                return(drawBox.Contains(pt));
            }

            switch (scMgr.GraphicsType)
            {
            case GraphicsType.GDIPLUS:
                return(transLastHitGraphicsPath.IsVisible(pt));

            case GraphicsType.D2D:
                return(transLastHitPathGeometry.FillContainsPoint(GDIDataD2DUtils.TransToRawVector2(pt)));
            }

            return(false);
        }