Draw the graphic

Draw a graphic by calling the MDrawable::Draw function for any MGraphic derived class and passing it a drawing port. The code below shows the TMyLine::Draw function declaration and call. TMyLine descends from MGraphic.

      TMyLine::Draw( TGrafPort& myPort ) const;
      
      TMyLine.Draw( myPort );
MDrawable::Draw tells the graphic to send its geometries and graphic state to the drawing port, which draws the geometries of the graphic oneatatime. This is the preferred method and should always be used to draw complex graphics.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker