| Visual Basic (Declaration) | |
|---|---|
Public Function SubMatrix( _ ByVal startRow As Integer, _ ByVal endRow As Integer, _ ByVal startCol As Integer, _ ByVal endCol As Integer _ ) As Matrix | |
| Visual Basic (Usage) | |
|---|---|
Dim instance As Matrix Dim startRow As Integer Dim endRow As Integer Dim startCol As Integer Dim endCol As Integer Dim value As Matrix value = instance.SubMatrix(startRow, endRow, startCol, endCol) | |
Parameters
- startRow
- An integer specifying the first row to include.
- endRow
- An integer specifying the last row to include.
- startCol
- An integer specifying the first column to include.
- endCol
- An integer specifying the last column to include.
Return Value
A Matrix instance that contains the subset of current matrix.If endRow is greater than startRow then the returned matrix is flipped horizontally. The same way if endCol is greater than startCol, then it is flipped vertically.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7