PIbd-11_Andrianova_E.N._LabWork01_Simple #1

Closed
Esenia wants to merge 11 commits from LabWork01 into main
Showing only changes of commit e15c1c66fd - Show all commits

View File

@ -83,27 +83,6 @@ public class DrawningDumpTrack
_pictureWidth = width;
_pictureHeight = height;
if (_startPosX.HasValue || _startPosY.HasValue)
{
if (_drawningDumpTrackWidth + _startPosX > _pictureWidth)
{
_startPosX = _pictureWidth.Value - _drawningDumpTrackWidth;
}
else if (_startPosX < 0)
{
_startPosX = 0;
}
if (_drawningDumpTrackHeight + _startPosY > _pictureHeight)
{
_startPosY = _pictureHeight.Value - _drawningDumpTrackHeight;
}
else if (_startPosY < 0)
{
_startPosY = 0;
}
}
return true;
Outdated
Review

Нет корректировки координат, если при текущих объект "выходит" за границы

Нет корректировки координат, если при текущих объект "выходит" за границы
}