EVP Toolbox
imdraw - draw image direct into screen (Windows). or draw into a spcified window ( Linux ).
Calling Sequence
imdraw(im, win, x, y, w, h)
Parameters w
* im: MxNx3, a color (0-255 range) image.
* win : (Windows version will ignore this parameter) X-Window ID of window to be draw on.
* x,y,w,h : ( Linux version will ingore these parameters) specify a rect in screen to display our image.
Description
We implement imdraw in a special way. The tradition methon is converting image to ppm format, passing it to TCL/TK to show it in a window. This methon is system independent, but it is not a efficient way, can not fulfill Scilab Aurora's requestment. So I have to use Win32 API (under Windows), and gdk-pixbuf (under Linux). It is proved that our effort makes sense.
Examples
im = imread(SCI + 'lena.png');
[h,w,c] = size(im);
if MSDOS then
imdraw (im, 0, 0, 0, w, h );
else
imshow (im);
end;