commandGGet24 method
Implementation
List<List<int>>? commandGGet24(){
_setEnv();
ParamInteger w = ParamInteger();
ParamInteger h = ParamInteger();
List<int>? data = ClipProc.doCommandGGet24Begin( w, h );
if( data != null ){
int width = w.val();
int height = h.val();
if( (width > 0) && (height > 0) ){
int x, y, r, g, b;
int i = 0;
List<List<int>> array = List.filled( height, [] );
for( y = 0; y < height; y++ ){
array[y] = List.filled( width, 0 );
for( x = 0; x < width; x++ ){
r = data[i++];
g = data[i++];
b = data[i++];
i++;
array[y][x] = (r << 16) + (g << 8) + b;
}
}
ClipProc.doCommandGGet24End();
return array;
}
}
return null;
}