本文整理汇总了C#中IMatrix.Size方法的典型用法代码示例。如果您正苦于以下问题:C# IMatrix.Size方法的具体用法?C# IMatrix.Size怎么用?C# IMatrix.Size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IMatrix
的用法示例。
在下文中一共展示了IMatrix.Size方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitParameters
private void InitParameters(IMatrix<int> matrix)
{
Name = "MatrixVisualizerForm";
Text = " Visualizer of matrix";
this.matrix = matrix;
coefficient = 255.0 / CoreUtilities.Utilities.Max(matrix);
sizeOfMatrix = new Size(matrix.Size(1), matrix.Size(0));
matrixBitmap = new Bitmap(sizeOfMatrix.Width, sizeOfMatrix.Height);
modeOfDrawing = Mode.Matrix;
settingsEvent = SetStep;
settingsEvent += SetCriterionSettings;
settingsEvent += SetZoom;
settingsEvent += SetBitmap;
}
示例2: InitParameters
private void InitParameters(SplittedMatrix splittedMatrix, IMatrix<int> matrix, ISolution solution)
{
Name = "SolutionVisualizerForm";
Text = " Visualizer of solution";
this.splittedMatrix = splittedMatrix;
this.matrix = matrix;
this.solution = solution;
int rows = matrix.Size(1);
int columns = matrix.Size(0);
int minSize = rows < columns ? rows : columns;
zoomShift = 1 + minSize / 400;
coefficient = 255.0 / CoreUtilities.Utilities.Max(matrix);
modeOfDrawing = Mode.Matrix;
ModeChangeButton.Visible = true;
settingsEvent = SetZoom;
settingsEvent += SetSolutionSize;
settingsEvent += SetStep;
settingsEvent += SetBitmap;
settingsEvent += InitSumInBlocks;
settingsEvent += SetBoundOfValuesOfBlocks;
settingsEvent += SetSumInBlocks;
}