Боровков М В ПИбд-22 4 лабораторная работа #5
@ -138,8 +138,9 @@ namespace ProjectElectricLocomotive.Generics
|
||||
continue;
|
||||
}
|
||||
|
||||
int widthCount = _pictureHeight / _placeSizeHeight;
|
||||
drawningLocomotive.SetPosition((i / widthCount) * _placeSizeWidth, (i % widthCount) * _placeSizeHeight);
|
||||
int ColumnCount = _pictureWidth / _placeSizeWidth;
|
||||
int RowsCount = _pictureHeight / _placeSizeHeight;
|
||||
drawningLocomotive.SetPosition((i % ColumnCount) * _placeSizeWidth, ((RowsCount - i / ColumnCount - 1) * _placeSizeHeight));
|
||||
drawningLocomotive.DrawTransport(g);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user