DrawImage:

Path: Common/Graphics

% Draws an image in a figure window
 If file is empty you will be asked to select a file via uigetfile.
--------------------------------------------------------------------------
   Form:
   i = DrawImage( hParent, position, file, path, width )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   hParent   (1,1)   Handle to the figure
   position  (1,2)   [x,y] lower left corner (pixels)
   file      (1,:)   File name
   path      (1,:)   Path name
   width     (1,1)   Width

   -------
   Outputs
   -------
   i         (:,:,:) Image

--------------------------------------------------------------------------
   See also uigetfile, imread, image
--------------------------------------------------------------------------

Children:

Common: General/CloseIfHandle
Common: Graphics/NewFig

Back to the Common Module page