コード例 #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 => GetHashCodeHelper.CalculateHashCode(TopLeft.GetHashCode(),
                                        TopMiddle.GetHashCode(),
                                        TopRight.GetHashCode(),
                                        MiddleLeft.GetHashCode(),
                                        MiddleRight.GetHashCode(),
                                        BottomLeft.GetHashCode(),
                                        BottomMiddle.GetHashCode(),
                                        BottomRight.GetHashCode());
コード例 #2
0
        public void Redraw()
        {
            if (_cropTool.Height <= 0 && _cropTool.Width <= 0)
            {
                ShowThumbs(false);
                return;
            }

            BottomMiddle.Redraw(_cropTool.TopLeftX + _cropTool.Width / 2, _cropTool.TopLeftY + _cropTool.Height);
            LeftMiddle.Redraw(_cropTool.TopLeftX, _cropTool.TopLeftY + _cropTool.Height / 2);
            TopMiddle.Redraw(_cropTool.TopLeftX + _cropTool.Width / 2, _cropTool.TopLeftY);
            RightMiddle.Redraw(_cropTool.TopLeftX + _cropTool.Width, _cropTool.TopLeftY + _cropTool.Height / 2);
            TopLeft.Redraw(_cropTool.TopLeftX, _cropTool.TopLeftY);
            TopRight.Redraw(_cropTool.TopLeftX + _cropTool.Width, _cropTool.TopLeftY);
            BottomLeft.Redraw(_cropTool.TopLeftX, _cropTool.TopLeftY + _cropTool.Height);
            BottomRight.Redraw(_cropTool.TopLeftX + _cropTool.Width, _cropTool.TopLeftY + _cropTool.Height);
            ShowThumbs(true);
        }