Prints a <Float64Array> in 2D into a <StrList> object.
int32 Print2D( int32 p_nWidth, int32 p_nHeight, StrList p_slData )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nWidth | The print width. Must be a value that when multiplied by p_nHeight exactly matches the array count. |
int32 | p_nHeight | The print height. Must be a value that when multiplied by p_nWidth exactly matches the array count. |
<StrList> | p_slData | The <StrList> that stores the printed array values. |
import library "app_service_console_util.ssl";
import library "type_str_list_util.ssl";
auto Color r = new Color( 1, 1, 1, 255 );
auto Color g = new Color( 2, 2, 2, 255 );
auto Color b = new Color( 3, 3, 3, 255 );
auto Color a = new Color( 0, 0, 0, 255 );
auto ColorArray data;
data.Add( r );
data.Add( g );
data.Add( b );
data.Add( a );
auto StrList data_out;
data.Print2D( 4, 1, data_out );
LibStrList.Out( data_out );
STRLIST OUTPUT generated by STR_LIST_UTIL.SSL
1, 1, 1, 255, 2, 2, 2, 255, 3, 3, 3, 255, 0, 0, 0, 255