home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Books / 4 / EX05.ZIP / DRA_FORM.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1995-12-02  |  635 b   |  37 lines

  1. unit Dra_form;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, ExtCtrls, StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Image1: TImage;
  12.     Label1: TLabel;
  13.     Label2: TLabel;
  14.     procedure FormPaint(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   Form1: TForm1;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TForm1.FormPaint(Sender: TObject);
  29. begin
  30.    with Canvas do begin
  31.      Draw(0,0, Image1.Picture.BitMap);
  32.      StretchDraw(Rect(250,0,350,50),Image1.Picture.BitMap)
  33.    end;
  34. end;
  35.  
  36. end.
  37.