Print2D Data Member Function

Prints a <Float64Array> in 2D into a <StrList> object.

Prototype

int32 Print2D( int32 p_nWidth, int32 p_nHeight, StrList p_slData )

Parameters

Parameter Type Parameter Name Documentation
int32p_nWidthThe print width. Must be a value that when multiplied by p_nHeight exactly matches the array count.
int32p_nHeightThe print height. Must be a value that when multiplied by p_nWidth exactly matches the array count.
<StrList>p_slDataThe <StrList> that stores the printed array values.

Examples

Copy Text To Clipboard

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 );

Results

STRLIST OUTPUT generated by STR_LIST_UTIL.SSL
1, 1, 1, 255, 2, 2, 2, 255, 3, 3, 3, 255, 0, 0, 0, 255