private static CircleWindow PositionAdjustCircle( PositionAdjustToolSettingBase posSetting, PositionAdjustToolResultBase posResult, CircleWindow circle) { PositionControl positionAdjusted = ToolResultRender.GetPositionAdjusted(posSetting, posResult, (WindowShape)circle); return(new CircleWindow(positionAdjusted.sPoint.nX, positionAdjusted.sPoint.nY, (ushort)circle.Diameter)); }
private static RectangleWindow PositionAdjustRectangle( PositionAdjustToolSettingBase posSetting, PositionAdjustToolResultBase posResult, RectangleWindow rect) { PositionControl positionAdjusted = ToolResultRender.GetPositionAdjusted(posSetting, posResult, (WindowShape)rect); return(new RectangleWindow(positionAdjusted.sPoint.nX, positionAdjusted.sPoint.nY, (ushort)rect.Size.Width, (ushort)rect.Size.Height, positionAdjusted.nAngle)); }