%
%  Abgel. Klasse für Plot-Objekte
%
%  >> img = imread('Apfelm.jpg');
%  >> s = ShImage( img )
%
classdef ShImage < Shape
  properties (Access = private)
    img = [];
  end
    
  methods
    function obj = ShImage( img )
      obj@Shape(0,0); 
      obj.img = img;
      obj.hnd = [];
    end
    
    function disp( obj )
      disp( 'ShImage' );
    end
  
    function draw( obj )      
      clear( obj );    % Methode von Shape
      if( ~isempty( obj.img ) )
        obj.hnd = image( obj.img );
      end
    end
    
  end
end