| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Matrix.Resize
Resizes matrix to given height and width.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Matrix | 9.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Matrix.Resize"; MatrixRef; Height; Width ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| MatrixRef | The matrix reference number. | $matrix |
| Height | The height of the matrix. | 3 |
| Width | The width of the matrix. | 4 |
Result
Returns OK or error.
Description
Resizes matrix to given height and width.Examples
Try resize:
Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 3; 4 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Resize"; $matrix; 7; 8 ) ]
Show Custom Dialog [ "Size" ; MBS( "Matrix.Width"; $matrix ) & " x " & MBS( "Matrix.Height"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Resize"; $matrix; 7; 8 ) ]
Show Custom Dialog [ "Size" ; MBS( "Matrix.Width"; $matrix ) & " x " & MBS( "Matrix.Height"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]
Resizes a matrix:
Set Variable [ $r; Value: MBS( "Matrix.Resize"; $matrix; 3; 4 ) ]
See also
This function checks for a license.
Created 8th April 2019, last changed 2nd November 2020