Convert graphics to an image matrix.
im = xs2im(win_num,[color])
Integer scalar or vector.
Optional integer. 0 means black and white and 1 means color. The default value is 1.
The returned image, uint8 type hyper-matrix.
xs2im convert the recorded graphics of the window win_num to an image matrix. This function works only if the selected driver is "Rec" in the window win_num or if the window is in "new style".