-
Notifications
You must be signed in to change notification settings - Fork 10
DTL.Range.BasicRect.ClearRange
sitRyo edited this page Jan 15, 2020
·
1 revision
BasicRect ClearRange()
描画範囲(X, Y, W, H)を指定する。
(1) 自分自身の参照値を返す。
投げない
var matrix = new int[10, 10];
MatrixRange matrixRange = new MatrixRange(2, 3, 4, 5);
Border border = new Border(5);
border.SetRange(matrixRange);
border.Draw(matrix);
border.ClearRange();
border.Draw(matrix);
new OutputConsole().Draw(matrix);
5 5 5 5 5 5 5 5 5 5
5 0 0 0 0 0 0 0 0 5
5 0 0 0 0 0 0 0 0 5
5 0 5 5 5 5 0 0 0 5
5 0 5 0 0 5 0 0 0 5
5 0 5 0 0 5 0 0 0 5
5 0 5 0 0 5 0 0 0 5
5 0 5 5 5 5 0 0 0 5
5 0 0 0 0 0 0 0 0 5
5 5 5 5 5 5 5 5 5 5
Copyright (c) 2017-2019 Kasugaccho. Copyright (c) 2018-2019 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)